要求写一段登陆程序:
1、输入用户名和密码
2、认证成功之后提示登陆成功
3、如果用户名和密码输错3次,就强制退出
#!/usr/bin/nev python #-*-coding:utf-8 -*- #Author :show530 username = 'hongtao' password = '123456' for i in range(3): input_user = str(input("Please enter your name: ")) input_pass = str(input("Please enter your password: ")) if input_user == username and input_pass == password: print("