立即学习:https://edu.csdn.net/course/play/26676/338773?utm_source=blogtoedu
import math(装载math模块)
dir:遍历(例:dir(math):可查看math里所有的函数)
pow(底数,指数):求幂
sqrt(开方)
**:乘自己?
精确计算:decimal.Decimal(十进制 精确值)
整数不怕溢出但是浮点数怕!
立即学习:https://edu.csdn.net/course/play/26676/338773?utm_source=blogtoedu
import math(装载math模块)
dir:遍历(例:dir(math):可查看math里所有的函数)
pow(底数,指数):求幂
sqrt(开方)
**:乘自己?
精确计算:decimal.Decimal(十进制 精确值)
整数不怕溢出但是浮点数怕!