立即学习:https://edu.csdn.net/course/play/26676/338773?utm_source=blogtoedu
import math, 导入模块
dir(math) => 查看模块里的所有函数
math.pi
math.pow(2,3)=2^3=8
help(math.pow) 查看函数文档。
import decimal
a=decimal.Decimal('0.1')
b=decimal.Decimal('0.2')
Decimal('0.1')
Decimal('0.2')
a+b
Decimal('0.3')