有没有办法在python中以编程方式确定控制台的宽度?我的意思是在没有包装的情况下适合一行的字符数,而不是窗口的像素宽度.
编辑
寻找适用于Linux的解决方案
python linux terminal console width
console ×1
linux ×1
python ×1
terminal ×1
width ×1