Python的基本数据类型
作者:互联网
21:09:35
---恢复内容结束---
1 import getpass 2 3 name = raw_input('请输入用户名:') 4 pwd = getpass.getpass('请输入密码:') 5 6 if name == "alex" and pwd == "cmd": 7 print "欢迎,alex!" 8 else: 9 print "用户名和密码错误"View Code
1 import getpass 2 3 4 name = raw_input('请输入用户名:') 5 pwd = getpass.getpass('请输入密码:') 6 7 if name == "alex" and pwd == "cmd": 8 print "欢迎,alex!" 9 else: 10 print "用户名和密码错误"View Code
1 import getpass 2 3 4 name = raw_input('请输入用户名:') 5 pwd = getpass.getpass('请输入密码:') 6 7 if name == "alex" and pwd == "cmd": 8 print "欢迎,alex!" 9 else: 10 print "用户名和密码错误"View Code
import getpass name = raw_input('请输入用户名:') pwd = getpass.getpass('请输入密码:') if name == "alex" and pwd == "cmd": print "欢迎,alex!" else: print "用户名和密码错误"
import getpass name = raw_input('请输入用户名:') pwd = getpass.getpass('请输入密码:') if name == "alex" and pwd == "cmd": print "欢迎,alex!" else: print "用户名和密码错误"
标签:基本,用户名,alex,name,Python,数据类型,getpass,pwd,print 来源: https://www.cnblogs.com/cc2019/p/10692732.html