Tony9193 发表于 2020-10-11 00:37:11

为啥还是报错啊[小甲鱼py第三期]

"""make myfirst game """
temp=input("geuess which word")
guess=int(temp)
if guess == 8
    print("yes")
    print("A fucking")
else:
    print("nonono")

print("game over")

巴巴鲁 发表于 2020-10-11 07:16:29

"""make myfirst game """
temp=input("geuess which word")
guess=int(temp)
if guess == 8: #少个冒号
    print("yes")
    print("A fucking")
else:
    print("nonono")

print("game over")

冰河星云 发表于 2020-10-11 10:46:58

if guess == 8这里少一个冒号
应改为"""make myfirst game """
temp=input("geuess which word")
guess=int(temp)
if guess == 8:
    print("yes")
    print("A fucking")
else:
    print("nonono")

print("game over")
页: [1]
查看完整版本: 为啥还是报错啊[小甲鱼py第三期]