美文网首页
python中的help()

python中的help()

作者: 茶苯海 | 来源:发表于2017-01-02 17:30 被阅读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)

相关文章

网友评论

      本文标题:python中的help()

      本文链接:https://www.haomeiwen.com/subject/pzwwvttx.html