# 加减乘除：+， -， *， /，
a = 1
b = 2
c = 7
# print(a+b)
# print(a-b)
# print(a/b)
# print(a*b)
# 指数运算：**，
# print(b**2)
# 整除：//取整，  %取余
# print(c // b)
# print(c % b)
# 布尔运算：and, or, not
print(True or False)
print(True and False)
print(not False)
# 逻辑判断：==, !=, >=, <=, >, <
#         等于,不等于,大于等于...
print(1 == 1)
print(a == b)
print(1 >= a)
print(1 >= a or 1 < a or 0 ==1 )
print(1 >= a and 1 < a and 0 ==1 )
# 位运算符：&, |, ^, ~, <<, >>
# 2:00000010
# 1:00000001
# print(1 & 2)  # 00000000
# print(1 | 2)  # 00000011
# print(2 ^ 1)  # 00000011 按位异或
# print(2 ^ 2)  # 00000000
# print(~ 2)  # -x-1 取反
# print(2>>1)  # 向左进一位
# print(2<<1)  # 向右进一位

d = 3
# d += 1
d**=3
# d *= 2
print(d)
