下面的代码对我不起作用:
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发布于 2020-03-26 18:27:11
bro你只需要在python控制台中输入:-
import os
os.system('cls')https://stackoverflow.com/questions/60863954
复制相似问题