YUANya

导航

 
 1 name = ['alle','mike','tom','jerry','alice','hebe']
 2 for i in name:
 3     if i  == 'tom':
 4         print 'get!'
 5 #get!
 6 
 7 if 'ale'not in name :print 'get!'
 8 
 9 #get!
10 a = 'tom'
11 b = 'LL'
12 for o in [a,b]:
13     if o == 'll':
14         print "get!"
15     elif o == 'kl':
16         print "get!"
17     else:
18         print "another!"
19 '''
20 another!
21 another!
22 '''
23 abc ='kkk'
24 if abc != abc.lower() and abc == 'KKKK':print 'get!'
25 else:print 'another!'
26 
27 #another!

 

posted on 2019-07-04 09:53  YUANya  阅读(232)  评论(0编辑  收藏  举报