标签:round otto python ref image 计算机 code idt order
print(3 + 2)
print(3-2)
print(3 * 2)
print(3 / 2)
print(3 // 2)
练习:
print(3 + 2)
print(3 – 2)
print(3 * 2)
print(3 / 2)
print(3 // 2)
先乘除,再加减,有括号的先计算括号内的
print(3+5*3)
print(155 – 3*5 + 44/4)
自乘为一个幂,一个数的多少次幂
3*3*3*3*3
3的5次幂
print(3 ** 5)
print(4 ** 5)
print(10 ** 2)
print(10 ** 3)
print(10 ** 4)
print(10 ** 5)
print(3.2 * 10 ** 5)
print(7%2)
score = score + 1
score += 1
score = score – 1
score –= score
练习:
print(3*3*3*3*3)
print(3**5)
score = 5
score-=1
print(score)
在计算机中不好表示,e记法:
3.8e16
标签:round otto python ref image 计算机 code idt order
原文地址:https://www.cnblogs.com/luhouxiang/p/11220242.html