# _*_coding:utf-8 _*_
import datetime
name = 'gyf'
passd = 123
count =0
now = datetime.datetime.now()
while count <3:
username = input("you name is:")
password = int(input("you password get my.it.s:"))
if name==username and passd ==password:
print("welcome {_name} come on china".format(_name=username))
break
elif password !=passd:
print("the {pasword1} is error".format(pasword1=password))
if count ==2:
print("I.m sorry,It.s locked,Three minutes later,please input again")
print(now)
count +=1
# 适合刚学习python的朋友学习
转载于:https://www.cnblogs.com/guanyf/p/7442860.html
最后
以上就是忧郁御姐最近收集整理的关于python的white循环的全部内容,更多相关python内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复