from mathimport sqrt, ceil, floor
n1 =12
n2 =12.01
# 加减乘除
num1 = n1+n2
num2 = n1-n2
num3 = n1*n2
num4 = n1/n2
num5 = n1//n2
# 取模
num6 = n1%n2
# 平方,平方根
num7 = n1**2
num8 = sqrt(25)
#取整
round(5.6)
ceil(5.1)
floor(5.9)
from mathimport sqrt, ceil, floor
n1 =12
n2 =12.01
# 加减乘除
num1 = n1+n2
num2 = n1-n2
num3 = n1*n2
num4 = n1/n2
num5 = n1//n2
# 取模
num6 = n1%n2
# 平方,平方根
num7 = n1**2
num8 = sqrt(25)
#取整
round(5.6)
ceil(5.1)
floor(5.9)
本文标题:number
本文链接:https://www.haomeiwen.com/subject/fqitmftx.html
网友评论