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. 赋值运算符
代码演示:
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/281669.html