发布时间:2019-08-16 10:57:15编辑:auto阅读(2770)
#!/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
53778
40603
35041
30761
25627
25397
23828
19312
15422
14924
1510°
1393°
1493°
1527°
1539°
1721°
1680°
1552°
1650°
1598°