立即学习:https://edu.csdn.net/course/play/26676/338773?utm_source=blogtoedu
import math#引入模块
>>> dir(math)#查看所有函数
math.pi#调用圆周率
math.pow(2,3)#指数函数
help(math.pow)
2**3#指数
2*3#乘
import decimal#小数位数问题
>>> a=decimal.Decimal
>>> b=decimal.Decimal
>>> a=decimal.Decimal('0.1')
>>> b=decimal.Decimal('0.2')
数值溢出(整数无问题,浮点数)