常见运算符:
算术运算符:
1、+ 加 求和运算符 a+b
a = 1
b = 2
c = a + b
print(c)
# "F:\Program Files (x86)\python-3.9.0-amd64\python.exe" F:/python/daima.py/第6天/main.py
# 3
#
# 进程已结束,退出代码为 0
2、- 减 求差运算符 a-b
a = 1
b = 2
c = a - b
print(c)
# "F:\Program Files (x86)\python-3.9.0-amd64\python.exe" F:/python/daima.py/第6天/main.py
# -1
#
# 进程已结束,退出代码为 0
3、* 乘法 求积运算符 a*b
a = 3
b = 2
c = a * b
print(c)
# "F:\Program Files (x86)\python-3.9.0-amd64\python.exe" F:/python/daima.py/第6天/main.py
# 6
#
# 进程已结束,退出代码为 0
4、/ 除 求商运算符 b/a
a = 4
b = 2
c = a / b
print(c)
# "F:\Program Files (x86)\python-3.9.0-amd64\python.exe" F:/python/daima.py/第6天/m