导入getpass模块
import getpass username = input("username:") password = getpass.getpass("password") print(username,password)