擅长:python、mysql、java
<p>基于“当我出版时”地精。描述一下()一切正常。“我想你想要这样的东西:</p>
<pre><code>def describe(self):
result = ""
result += self.name
result += str(self.health) + ' other random info not in self.desc'
result += textwrap.fill(self.desc, 60)
return result
</code></pre>
<p>即从descripe()返回描述,不要在方法内部打印。你知道吗</p>