# -*- coding: utf-8 -*-
# @Time    : 2020/3/14 16:04
# @Author  : guoyunfei.0603
# @File    : class_operator.py

# 运算符  常用5大类

# 1. 算术运算符 + - * / %
# a = 10
# print(a % 3)

# 2. 赋值运算符 = += -=
# a =3
# a += 1  # 等同于 a = a+1
# a-= 1
# print(a)

# 3. 比较运算符 >  >=   <   <=   ==  !=
# 返回的是布尔值
a = 4
b = 5

# print(a != b)

# 4. 逻辑运算符 and or
# 返回的是布尔值
# a = 'get'
# b = 'GET'
# # print( a>b or a!=b)
# print(a.upper() == b)

# 5. 成员运算符 in not
# print(a in b)
#
c = "1"
d = "123"
print(c in d)
