立即学习:https://edu.csdn.net/course/play/26676/338773?utm_source=blogtoedu
math (模块)import math (调用math )
dir(math) 弹出很多关于math 的函数。
用法:math.pow(2,3) 得到8.0 ( 指数运算)2**3(表示2的3次方)。查询方法:help(math.pow)
import decimal 引用 小数点
a = decimal.Decimal('0.1')
b = decimal.Decimal('0.2')
a + b 得出 Decimal ('0.3')