pyscripter python中的语法错误

2024-09-28 22:23:47 发布

您现在位置:Python中文网/ 问答频道 /正文

if dice == dice2 :
    print ("The scores on both dice remain constant, no changes are made.")

elif dice > dice2 :
    print ("The scores of the two dice thrown are not the same.")
    print (a, "'s new strength is", difference, "+", c "and the new skill value is", difference2, "+", cc)

elif dice < dice2 :
    print ("The scores of the two dice thrown are not the same.")
    print (b, "'s new strength is", difference, "-", d "and the the new skill value is", difference2, "-", dd)

else :
    print ("I think we have an error!")

我的语法错误在第一个elif语句中,我哪里出错了???你知道吗


Tags: ofthenewisnotdicearesame