擅长:python、mysql、java
<p>我很确定这个问题是由尾部字段的逗号引起的,在python中,这表示您正在创建一个tuple,它将把下一行视为tuple对象的延续,您需要删除它们</p>
<pre><code>class Testimonial(models.Model):
name = models.CharField(max_length=20, null=True),
quote = models.CharField(max_length=255, null=True),
test = models.CharField(max_length=20, null=True)
</code></pre>
<p>应该是</p>
^{pr2}$