Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Python: Comparer les tuples


{filelink=15982}

 
T1 = (-1,-2, -3, -4)
T2 = (1,2, 3, 4)
 
print T1 == T2     #False
print T1 >= T2     #False
print T1 <= T2     #True
print T1 != T2     #True

Livres Sur ce Sujet

----------------------------------------------------------------------------

Comments are closed.