Skip to content

Wrong: _, term_width = os.popen('stty size', 'r').read().split() 问题 #7

@zenRRan

Description

@zenRRan

File "D:\pycharm_workshop\SU4MLC\semantic-unit-based\utils\misc_utils.py", line 25, in
_, term_width = os.popen('stty size', 'r').read().split()
ValueError: not enough values to unpack (expected 2, got 0)

老铁,如何解决这个问题?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions