Enter a word or phrase: hello
phrase: hello current: -----
0 guesses so far out of 6:
Guess a letter or whole word/phrase: h current: h----
1 guesses so far out of 6: h
Guess a letter or whole word/phrase: l
current: h-ll-
2 guesses so far out of 6: hl
Guess a letter or whole word/phrase: x Letter not in phrase.
current: h-ll-
3 guesses so far out of 6: hlx
Guess a letter or whole word/phrase: o
current: h-llo
4 guesses so far out of 6: hlxo
Guess a letter or whole word/phrase: e current: hello
You won.
像这样!!求大神帮个忙!!用python!!!谢谢!!
phrase: hello current: -----
0 guesses so far out of 6:
Guess a letter or whole word/phrase: h current: h----
1 guesses so far out of 6: h
Guess a letter or whole word/phrase: l
current: h-ll-
2 guesses so far out of 6: hl
Guess a letter or whole word/phrase: x Letter not in phrase.
current: h-ll-
3 guesses so far out of 6: hlx
Guess a letter or whole word/phrase: o
current: h-llo
4 guesses so far out of 6: hlxo
Guess a letter or whole word/phrase: e current: hello
You won.
像这样!!求大神帮个忙!!用python!!!谢谢!!