算数运算:
比较运算:
Python3中取去除了‘<>’
赋值运算:
例:
>>>name='changke'
>>>name+='li'
>>>name
>>>'changkeli'
逻辑运算:
例:
>>>name='changke'
>>>age=24
>>>age>23 and name=='changke'
>>>True
>>>age>28 and name=='changke'
>>>False
>>>age ==24 or name=='changkeeee'
>>>True
成员运算:
例:
>>>nums[1,2,3,4,5,6,7]
>>>9 in num
>>>False
>>>1 in num
>>>True
>>>9 not in num
>>>True
身份运算: