https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size获取终端尺寸。在打印前需要根据终端尺寸,来决定如何格式化打印。