当前位置: 首页 > 工具软件 > White > 使用案例 >

python的white循环

牟飞沉
2023-12-01
# _*_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

 类似资料: