Python 自学笔记《1》

引入模块

  import module_name  例如:import math

查看模块内容

  dir(module_name)  例如:dir(math)

查看模块内函数的用法

  help(module_name.function)  例如:help(math.sin)

locals() BIF:返回当前作用域定义的所有名的一个集合。

原文地址:https://www.cnblogs.com/zhangjialu2015/p/5166967.html