请问有大佬知道怎么解决吗
如题缩进应该不正确,建议你以后将代码发上来
程序员来问问题,怎么会不带代码呢?是吧哈~
目测,第一行代码 input 右半边引号有问题,可能是中文符号,改成英文符号试试。
还有 红色部分下一行也是这个问题 是你Ctrl-C/Ctrl-D终止了输入吧 蛔虫后面的引号 是英文的吗 引号写成大写的了,看代码:
temp = input (" might as well make a guess at small turtle thought now is that number:")
guess = int(temp)
if guess == 8:
print(" you are a small turtle in the mind of the worm? ! ")
print(" hum, guess no reward! ")
else:
print (" guessed wrong, small turtle thought is eight now!")
print ("the game, not play ^ ^")
别问我为什么变英文的了。
页:
[1]