0
對不起,我想用戶輸入一個字母,但我明白爲什麼顯示屏將顯示無。一個無輸出
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個字母同時
主題是:水果
猜測: 無
非常感謝!我一直在尋找一個答案,但敦re realli明白其他評論說什麼 –
不客氣,歡迎來到堆棧溢出。如果答案是有用的,請使用答案左邊的控件加註他們並接受最有用的答案。 –