python 第二天
input 为准备输入
变量名:
字母
数字
下划线
要求:
不能数字开头
不能使用关键字
不能使用内置
if else while
contious 终止当前循环跳到下次循环不执行下面代码
break 终止所有循环
用户登录(三次重试机会)
count = 0 while count < 3 : user = input ('《《《《《') and pwd = input (‘《《《《’) if user == ‘xx’ and pwd == 'yy' : print ('welcome') break else : print ('user or pwd wrong') count = count +1

浙公网安备 33010602011771号