In Java abbiamo , ho bisogno di struttura simile in Python da usare contiene come di seguito:Contiene di HashSet <Integer> in Python
A = [1, 2, 3]
S = set()
S.add(2)
for x in A:
if S.contains(x):
print "Example"
La prego di aiutarmi?
https://docs.python.org/2/library/sets.html – StackFlowed
in modo 'se x in S' significa contiene? –
Sì! hai ragione ! – StackFlowed