pygame.display.flip()
pygame.quit()
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)
importrandom
words=["print(""join(guessed))
guess=input("猜一个字母:"ifguessinword:
fori,letterinenumerate(word):
ifletter==guess:
guessed[i]=guess
else:
attempts=1
if"notinguessed:
print("恭喜你,猜对了!"break
ifattempts==0:
print("游戏结束,正确答案是:"word)