2024-04-18 19:16:57 发布
网友
我正在使用ubuntu 20.0.4
我是linux编程的新手。需要帮助找出什么是linux的ctypes.windll.kernel32.SetConsoleTitleW
ctypes.windll.kernel32.SetConsoleTitleW
使用Xterm控制序列
import sys sys.stdout.write(b'\33]0;title you want\a') sys.stdout.flush()
你可以做这项工作,但你可以做得更好
在Python3.x中
print('\33]0;title you want\a', end='') sys.stdout.flush()
或者使用python 3.3或更高版本
print('\33]0;title you want\a', end='', flush=True)
或
sys.stdout.buffer.write(b'\33]0;title you want\a') sys.stdout.buffer.flush()
使用Xterm控制序列
你可以做这项工作,但你可以做得更好
在Python3.x中
或者使用python 3.3或更高版本
或
相关问题 更多 >
编程相关推荐