每当我运行我的代码时,输​​入语句下的行就永远不会运行:

时间:2019-04-05 21:13:58

标签: python sublimetext

我无法在输入变量下运行任何代码行。

我检查了错别字,但是没有错。

def inputs():
    global guess, count
    count = (0)
    while len(theWord) > (count):
        for i in range(len(theWord)):
            print (theWord[i])
            print (count)
    **      guess = str(input("Guess a letter A-Z:").strip())**
    **      print ("test") <---- should run**
        if guess == theWord[i]:
        graphic[i] = (guess)
        print (graphic)
        count = count + (1) 

inputs()

0 个答案:

没有答案