【发布时间】:2017-11-07 19:41:47
【问题描述】:
好的,所以我目前正在用 python 编写刽子手,我想知道我是否可以清除它在 python shell 中所说的内容,因为我不只是不想让这个人读到这个词。
import time
keyword = input(" Please enter the word you want the person to guess")
lives = int(input("How many lives would you like to have?"))
print ("There are ", len(keyword), "letters in the word")
time.sleep(2)
guess = input("please enter your guess")
我想删除 shell 中的所有文本。
【问题讨论】:
-
给我们看代码.....为什么开头的字是可见的?
-
您是在询问clearing the entire shell 还是只清除显示的特定文本?正如@depperm 提到的,请分享一些代码,或者更清楚/具体地说明您的要求。
标签: python