x=15
>>> if x==10:
print ("not bad")
elif x==11:
print ("good")
elif x==12:
print ("best")
else:
while x==30:
x+=1
print(x)
答案 0 :(得分:2)
也许这就是您想要的吗?
x=15
>>> if x==10:
print ("not bad")
elif x==11:
print ("good")
elif x==12:
print ("best")
else:
while x < 30:
x+=1
print(x)