擅长:python、mysql、java
<p>问题是你的代码,这是无效的语法,我猜你是非常新的python。。。你知道吗</p>
<p>使用{}<br/>声明对象
以下是对象的外观:</p>
<pre><code>farm_animals = {"sheep":"big", "cow":"huge"}
print(farm_animals)
</code></pre>
<p>您可以在其他编辑器上在线试用:<br/>
<a href="http://py3.codeskulptor.org/#user301_UotVM3f1Pw_0.py" rel="nofollow noreferrer">http://py3.codeskulptor.org/#user301_UotVM3f1Pw_0.py</a></p>