📜  python删除控制台最后一行 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:42.891000             🧑  作者: Mango

代码示例1
print("This message will remain")
print("This message will be deleted", end="\r")
#NOTE: If you run it in IDLE by pressing F5, the shell will still display#
#both messages, however, if you run the program by double clicking#
#then the ouput console will delete it!#