Commit 2fea5670 by BellCodeEditor

save project

parent 72206323
Showing with 11 additions and 23 deletions
username = "python"
userpassword = "123456"
i=5
while True:
if i>0:
name = input('请输入账号')
password = input('请输入密码')
if name == username and password == userpassword:
print('登录成功')
break
else:
if name != username:
print('账号错误')
i-=1
print('你个小垃圾啊,还有'+str(i)'次机会')
if password != userpassword:
print('密码错误')
i-=1
print('你个小垃圾啊,还有'+str(i)'次机会')
else:
print('您的账号已经锁定,请带100000元来我司解锁:)')
exit()
print('欢迎来到贝尔编程')
bro1 = '关羽'
bro2 = '刘备'
bro3 = '张飞'
bros = ['刘备','关羽','张飞']
bro1 = ['关羽',160,8.5]
bro2 = ['刘备',161,9.1]
bro3 = ['张飞',166,8.3]
bros[0] = '关羽'
bros[1] = '刘备'
print(bros)
\ No newline at end of file
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