math庫
import math
math.sin(1)
math.exp(1)
math.pi
爲庫起一個別名
import math as m
m.sin(1)
特別指定導入函數的名字
from math import exp as e
e(1)
直接地導入庫中的所有函數
from math import *
exp(1)
sin(1)
import math
math.sin(1)
math.exp(1)
math.pi
import math as m
m.sin(1)
from math import exp as e
e(1)
from math import *
exp(1)
sin(1)