1.算数运算符
代码演示:
num1 = 10
num2 = 3
print(num1+num2)
print(num1-num2)
print(num1*num2)
print(num1/num2)
print(num1%num2) # 取余,10除3余数
print(num1//num2) # 取幂10/3取整
print(num1**num2) # 10的三次方
2. 赋值运算符
代码演示:
标签:---,演示,num1,num2,10,python,运算符,print
来源: https://www.cnblogs.com/jiajunling/p/16613825.html