getpass模块:不显示输入密码
用法:
1 #!/usr/bin/python 2 #2017-05-13 3 #_*_coding:utf-8_*_ 4 5 import getpass 6 7 username = raw_input ("username:") 8 password = getpass.getpass ("password:") 9 10 print(username,password)
时间: 2024-11-13 06:35:53
getpass模块:不显示输入密码
用法:
1 #!/usr/bin/python 2 #2017-05-13 3 #_*_coding:utf-8_*_ 4 5 import getpass 6 7 username = raw_input ("username:") 8 password = getpass.getpass ("password:") 9 10 print(username,password)