Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.popen #127

Open
hdy0715 opened this issue Dec 9, 2021 · 1 comment
Open

os.popen #127

hdy0715 opened this issue Dec 9, 2021 · 1 comment

Comments

@hdy0715
Copy link

hdy0715 commented Dec 9, 2021

请问一下这句code的参数是不是有问题呀
_, term_width = os.popen('stty size', 'r').read().split()
term_width = int(term_width)
当我run mainpro_CK+.py时会有这样的错误
_, term_width = os.popen('stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0)

@zyh0317
Copy link

zyh0317 commented Mar 3, 2022

我也遇到了这个问题,请问下解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants