import random
list1 = ["chips", "banana", "cake", "wine", "cookie", "apple", "chocolate"]
random_word = random.choice(list1)
user_guesses = 0
guess_limit = 10
index = 0
guessleft = guess_limit - user_guesses
index_1 = random_word[index]
length = len(random_word)
for a in range(len(random_word)):
print("_")
所以这个循环的输出将在彼此下面加上下划线,而不是像这样在彼此后面加上下划线 _ _ _ _
我怎样才能解决这个问题?
慕桂英3389331
qq_笑_17
相关分类