首页 > 代码库 > python模块-getpass

python模块-getpass

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)

 

python模块-getpass