import getpass username = input("username:") password = getpass.getpass("password") print(username,password)#这里应该放顶格,不应该前面有空格