7月29日-登入代码

user = 'stoneman'
passwd = '123456'
for i in range(10):
if i< 3:
name = input('username:')
password =input('password:')
if user == name and passwd ==password:
print('Welcome login')
else:
print('invalid username or password')

else:
print('over! you have tried to three times! ')
break
posted @ 2017-07-04 11:03  stonebreak2020  阅读(74)  评论(0)    收藏  举报