# Author: Allenlee
import getpass
username = input("username:")
password = getpass.getpass("password:")
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.