'''
常見的邏輯
打字
判斷正確錯誤
然後是文字生成函數,
單詞和漢字生成
生成的頻率
'''
import sys
import time
"""
連續成功
"""
"""
連續失敗
"""
list1 = []
def islianxu(stringaa):
list1.append(stringaa) ## 使用 append() 添加元素
ss= str(len(list1))
print("連續成功"+ss+"次,此生你將有"+ss+"個媳婦")
from random_words import RandomWords
rw = RandomWords()
while(1):
word = rw.random_word()
print("請輸入上面的字====:"+word)
price_str = input()
if(price_str==word):
print("NICE")
islianxu(price_str)
else:
print("Miss ! come on big brother")
list1.clear()
time.sleep(1)
你此生的老婆數
consoles
wash
NICE
連續成功6次,此生你將有6個媳婦
請輸入上面的字====:symbol
stmbol
Miss ! come on big brother
請輸入上面的字====:canyon
canyon
NICE
連續成功1次,此生你將有1個媳婦
請輸入上面的字====:artilleries
有空了封裝成一個有趣的包,支持pip安裝,誰想封裝也可以 抱拳