【发布时间】:2018-12-02 19:16:33
【问题描述】:
我在所有这些编程方面都不太擅长,我需要帮助。
我希望我的代码打印出 hello world 之类的内容,然后让我们说 1 秒后
删除该文本并将其替换为你好吗?
我尝试了各种类似 'clear' 和 '/b' 的方法,但没有任何效果,如果你能提供帮助,那就太棒了。
import time
print('hello world')
time.sleep(3)
#The text deleting code here...
print('how are you?')
【问题讨论】:
-
您在哪个环境中运行代码?
-
Python Idle 是我正在使用的。
-
如果你也问版本是3.6.2
标签: python python-3.x