学习笔记(8):零基础掌握 Python 入门到实战-循环语句,周而复始(三)
立即学习:https://edu.****.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)