擅长:python、mysql、java
<p>您可以在python中使用<a href="http://docs.python.org/tutorial/datastructures.html" rel="nofollow noreferrer">set</a>函数,您将能够删除所有重复项。我不认为有一种方法可以做到这一点GQL。在</p>
<pre><code>>>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> fruit = set(basket) # create a set without duplicates
>>> fruit
set(['orange', 'pear', 'apple', 'banana'])
</code></pre>