原文链接:http://www.juzicode.com/python-error-pycharm-getpass-invalid/
错误提示:
在pycharm种使用getpass()输入密码时无法继续运行:
print('juzicode.com / vx:桔子code')
import getpass
user = input("输入用户名:")
passw = getpass.getpass("输入密码:")
if user == 'admin' and passw=='123':
print('进入系统.....')
else:
print('用户名或密码错误!')
运行结果:

解决方法:
1、在pycharm界面的底部找到”Terminal“按钮,打开终端,输入python + py文件名称运行:

如果本文还没有完全解决你的疑惑,你也可以在微信公众号“桔子code”后台给我留言,欢迎一起探讨交流。
