1 import getpass #加密密码 2 username = input("username:") 3 password = getpass.getpass("password:") 4 print(username,password)此代码在pycharm中执行打印出现异常,放到dos窗口中执行可正常