python学习过程中两大法宝dir和help

dir()help() 是学习python的两个法宝函数。

dir() 能列出类或模块的全部内容

help() 帮助我们了解工具的使用方法

dir(str)
help(str.join)
posted @ 2023-04-10 22:29  hzyuan  阅读(72)  评论(0)    收藏  举报