Commit d18dea0b by BellCodeEditor

save project

parent bc89edf5
Showing with 6 additions and 1 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
i=3 i=5
while True: while True:
if i>0: if i>0:
name = input('请输入账号') name = input('请输入账号')
...@@ -12,7 +12,12 @@ while True: ...@@ -12,7 +12,12 @@ while True:
if name != username: if name != username:
print('账号错误') print('账号错误')
i-=1 i-=1
print('你个小垃圾啊,还有'+str(i)'次机会')
if password != userpassword: if password != userpassword:
print('密码错误') print('密码错误')
i-=1 i-=1
print('你个小垃圾啊,还有'+str(i)'次机会')
else:
print('您的账号已经锁定,请带100000元来我司解锁:)')
exit()
print('欢迎来到贝尔编程') print('欢迎来到贝尔编程')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment