输入用户名密码,密码不显示 导入getpass模块 import getpass username = input("username:") password = getpass.getpass("password") print(username,password)