NTS-Net icon indicating copy to clipboard operation
NTS-Net copied to clipboard

_, term_width = os.popen('stty size', 'r').read().split()

Open tectal opened this issue 5 years ago • 4 comments


ValueError Traceback (most recent call last) in () 5 import logging 6 ----> 7 _, term_width = os.popen('stty size', 'r').read().split() 8 term_width = int(term_width) 9

ValueError: not enough values to unpack (expected 2, got 0)

tectal avatar Jun 04 '19 06:06 tectal

老哥,怎么解决的

HRanWang avatar Jun 28 '19 06:06 HRanWang

在控制台就不会有这个问题了

cLEARLoVE00 avatar Jul 23 '19 08:07 cLEARLoVE00

You could comment these two lines and use term_width=80.

JingyunLiang avatar Jul 29 '19 09:07 JingyunLiang

i guess the code must run in Linux, not Windows

1012638162 avatar Dec 17 '20 08:12 1012638162