主页
Python
Python termios 模块
demo_ref_module_termios_basic
运行 ❯
×
更改方向
保存代码
更改主题
import termios import sys attrs = termios.tcgetattr(sys.stdin) print(f'Terminal attributes retrieved') print(f'Number of attributes: {len(attrs)}')
Terminal attributes retrieved
Number of attributes: 7