我一直被困在这个我一直在试验的基本程序。在
这是我的代码:
def description1(self):
desc = "%s is a %s, attack %s , health %s , defence %s , speed $s"%(self.name, self.description, self.attack, self.healthPoints, self.defence, self.speed)
return desc
以下是错误消息:
^{pr2}$
我使用的是python3.5。在
Tags:
您的格式有误%s未键入。 下面是正确缩进的代码
输出
^{pr2}$你也可以用
相关问题 更多 >
编程相关推荐