a, b = {1, 2, 3, 4}, {3, 4, 7, 10} c = a - b print c
set([1, 2])
set_one = set(r[0] for r in arcpy.da.SearchCursor("table_one", "name")) set_two = set(r[0] for r in arcpy.da.SearchCursor("table_one", "name")) print "Items unique to table_one: {}".format(", ".join(sorted(set_one - set_two)))
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.