发布时间:2019-08-16 10:57:15编辑:auto阅读(2883)
#!/usr/bin/env python
#codingutf-8
count = 0
while count < 3:
username = raw_input("USERNAME:")
password = raw_input("PASSWORD:")
if username == "user" and password == "123":
print "welcome!!!"
break
elif username != "user" and password != "123":
print "username or password wrong!!!"
elif username == "user" and password != "123":
print "password is wrong!!!"
elif username != "user" and password == "123":
print "username or password is wrong!!!"
count +=1
if count == 3:
print "go away ang don't back!!!"
上一篇: python @property用法作用
下一篇: python字典 dict
54473
41254
35795
31319
26223
25936
24437
20004
16015
15450
2365°
2157°
2248°
2376°
2332°
2544°
2490°
2313°
2380°
2356°