响应用户的输入

Responding to the user's input

我的代码看起来有点像这样:

question=input("What is your question?")

print("Let me think about that...")
import time
time.sleep(10) # delays for 10 seconds

print("I don't want to answer that question right now.")
print(question)

print("Ha ha ha")

我的问题在最后一行,因为我不知道如何让程序在程序笑之前等待用户输入他们的响应。我认为这与输入功能有关,但我不知道...

如果我没理解错的话...下面的代码不应该解决你的问题吗?

question = input("What is your question? ")

print("Let me think about that...")
import time
time.sleep(10) # delays for 10 seconds

print("I don't want to answer that question right now.")
answer = input(question)

print("Ha ha ha")