python - 基础算法题5 - 用户登录(三次机会)
username = input("输入名字") userword = int(input("输入密码")) i=1 while i<=3: if username = '你好' and userword = 123: print("登录成功") else: print("登录失败")
i++
username = input("输入名字") userword = int(input("输入密码")) i=1 while i<=3: if username = '你好' and userword = 123: print("登录成功") else: print("登录失败")
i++