python 获取终端的长和宽 size

创建日期: 2023-10-26 14:59 | 作者: 风波 | 浏览次数: 10 | 分类: Python
import os

w, h = os.get_terminal_size()
10 浏览
7 爬虫
0 评论