抱歉,我希望用户输入一个字母,但我不明白为什么显示屏会显示无。
import random
hangmanList = {"fruit":["apple","banana","orange"]}
topicList = ["fruit"]
randomTopic = random.choice(topicList)
wordList = hangmanList[randomTopic]
questionList = random.choice(wordList)
def main():
print("Welcome to the Hangman Game")
print("---------------------------")
print("Please choose 1 letter at a time")
print("Topic is: ",randomTopic)
guesses = input(print("Guesses: "))
main()
输出显示:
欢迎来到刽子手游戏
请一次选择1个字母
题目是:水果
猜测:无