Pyhton学习笔记1

一、标准库与扩展库对象的导入与使用 import 模块名 【as 别名】 例:import math #导入标准库math math.sin(0,5) #求0.5的正弦 2.from 模块名 import 对象名 【as 别名】 例 from math import sin sin(3) 3.from 模块名 import * 例:from math import * #导入标准库Math中所有对
相关文章
相关标签/搜索