python中的help()

2017-01-02  本文已影响66人  茶苯海

dir(list)列出list的各种方法、、

查看python所有的modules:help('modules')
单看python所有的modules中包含指定字符串的modules: help('modules yourstr')
查看python中常见的topics: help('topics')
查看python标准库中的module:import os.path + help('os.path')
查看python内置的类型:help(list)
查看python类型的成员方法:help(str.find)
查看python内置函数:help(open)

上一篇 下一篇

猜你喜欢

热点阅读