立即学习:https://edu.csdn.net/course/play/26676/338787?utm_source=blogtoedu
while 循环语句
a = 0
while a < 3:
s= input('input your lang: ' )
if s == "python":
print("your lang is {0}".format(s))
break
else:
a +=1
print("a=",a)
print('the end a:',a)
立即学习:https://edu.csdn.net/course/play/26676/338787?utm_source=blogtoedu
while 循环语句
a = 0
while a < 3:
s= input('input your lang: ' )
if s == "python":
print("your lang is {0}".format(s))
break
else:
a +=1
print("a=",a)
print('the end a:',a)
相关文章: