Python learning record W1-11: getpass

# Author: Allenlee

import getpass

username = input("username:")
password = getpass.getpass("password:")

print(username,password)


Import the getpass module, when entering the password, it can be displayed in unknown text, but run in PyCharm will report an error.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324654328&siteId=291194637