这段代码对我不起作用:
import os
print('cls method')
os.system('cls' if os.name == 'nt' else 'clear')
print('chr method')
print(chr(27) + "[2J")
输出:
(粘贴日志直接删除“|?|”)
cls method
|?|chr method
这段代码对我不起作用:
import os
print('cls method')
os.system('cls' if os.name == 'nt' else 'clear')
print('chr method')
print(chr(27) + "[2J")
输出:
(粘贴日志直接删除“|?|”)
cls method
|?|chr method