pythonices
aleatoriedades da vida ...
>>> if isinstance(False, bool): print "weee"
weee
>>> if isinstance(0, bool): print "weee"
>>> if isinstance(1, bool): print "weee"
>>> if isinstance(True, bool): print "weee"
weee
>>> if isinstance(True, int): print "weee"
weee
>>> if isinstance(1, int): print "weee"
weee
>>> if isinstance(1, bool): print "weee"
>>> teste = range(20)
>>> del teste[0:5]
>>> teste
[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
>>> teste[True]
6
>>> teste[False]
5
10:24 AM
Richard, quem sabe você possa me ajudar... Estou querendo dar uma reformulada bem legal no meu blog. ir ao topo