阅读背景:

python编程从入门到实践第五章习题

来源:互联网 
#5.2
cars = [ 'bwm' , 'audi' , 'subaru' ]
a_str = 'BWM'

print( a_str == cars[0] )
print( a_str.lower() == cars[0] )
print( a_str.lower() in cars )
print( a_str.lower() not in cars )cars = [ 'bwm' , 'audi' , 'subaru' ]
a_s



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: