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语句中,我哪里出错了???你知道吗
在
c
和"and the new skill value is"
之间需要一个逗号:相关问题 更多 >
编程相关推荐