首页 > 代码库 > switch语句

switch语句

switch 语句

int x = 10
switch(x)
case 1:
print(“sfsd”)
break
case 2:
print(“dsdf”)
break
default
print(“right”)
break