Commit 65e3f88a by BellCodeEditor

auto save

parent 6aa14610
Showing with 27 additions and 0 deletions
name="python"
password="123456"
times=3
while True:
if times<=0:
print("登陆次数超过3次,账号被锁定")
break
username=input("请输入用户名:")
userpassword=input("请输入密码:")
times-=1
if username != name:
print("用户名错误,请重新输入!")
continue
if userpassword != password:
print("密码错误,请重新输入!")
continue
print("登陆成功!")
break
\ No newline at end of file
import random
num=random.choice()
\ 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