# -*-coding:UTF-8-*-
# python 没有++ --运算符
# 算术运算符 +、-、*、/、//、**、%
# 比较(关系)运算符 == != > < ...
# 赋值运算符 = += -= //= %= ...
# 逻辑运算符 and or not
# 位运算符 & | ^ ~ << >>
# 成员运算符 in 、 not in
# 身份运算符 is、 not is
if __name__ == '__main__':
# is 和 == 的区别
a = [1, 2, 3]
b = a
print(a == b) # True
print(a is b) # True
b = a[0:3]
print(a == b) # True
print(a is b) # Flase # 说明切片没用公用一个内存