我使用Python3.7,我需要import termios来屏蔽密码输入。但是我在https://pypi.org/上找不到它
import sys, tty, termios
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import sys, tty, termios
File "C:\Python37\lib\tty.py", line 5, in <module>
from termios import *
ModuleNotFoundError: No module named 'termios'发布于 2018-08-28 18:05:36
发布于 2022-08-18 18:35:57
在我的例子中,VS代码提供了一个不必要的提示,要求进行此导入,但是,正如在这个线程中所说的,它在windows环境中不工作。
在我的情况下,它可以被删除,没有问题。
https://stackoverflow.com/questions/52062977
复制相似问题