標準庫與拓展庫對象的導入與使用

標準庫與拓展庫對象的導入與使用 1.import 模塊名【as別名】web import math #導入math庫 math.sin(0.5) #求0.5(弧度)的正弦 2.from 模塊名 import 對象名【as別名】svg from math import sin #只導入模塊中的指定對象,訪問速度較快 sin(0.5) 3.from 模塊名 import *code f
相關文章
相關標籤/搜索