擅长:python、mysql、java
<p><em><code>p[2]</code>是一个带有<code>username</code>键的字典</em>——换句话说,Django试图过滤的内容失败了:</p>
<pre><code>asdf = PUserSlidertxt.objects.filter(username={'username': 'shargh'})
</code></pre>
<p>相反,您可以<em>打开字典</em>:</p>
<pre><code>asdf = PUserSlidertxt.objects.filter(**p[2])
</code></pre>
<p>或者,通过键显式获取值:</p>
<pre><code>asdf = PUserSlidertxt.objects.filter(username=p[2]['username'])
</code></pre>