有没有办法使python有密码输入???
而不是:
Whats your password?
password <--- this is a user input
我需要:
Whats your password?
******** <--- this is a user input
这可能在python ???
答案 0 :(得分:0)
您可以使用getpass
隐藏输入:
import getpass
password = getpass.getpass("Whats your password?")