擅长:python、mysql、java
<p>你可以这样做:</p>
<pre><code>last_item_pk = Clash.objects.last().pk
</code></pre>
<p>查看此处了解详细信息:
<a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#last" rel="nofollow">https://docs.djangoproject.com/en/dev/ref/models/querysets/#last</a></p>