Changes between Version 64 and Version 65 of Pythonの短いソースコード集


Ignore:
Timestamp:
08/31/06 00:59:00 (13 years ago)
Author:
nakiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Pythonの短いソースコード集

    v64 v65  
    133133if x in list: 
    134134  print '%d exists' % x 
     135 
     136list = [[1, 2], [3, 4], [5, 6]] 
     137x = [3, 4] 
     138if x in list: 
     139  print '[%d, %d] exists' % (x[0], x[1]) 
    135140}}} 
    136141== タプルに含まれるか ==