知识卡片
帮助与源码反映当前对象版本
help、签名、源码和补全可帮助发现对象接口,查看前需知道对象来自哪个环境。help接受某些字符串名称用于查文档,不只是返回str类型;内置或扩展对象也不一定有可展示的Python源码。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Use all the help that your IPython REPL provides. The built-in help() function is your friend and guide in IPython land. Try typing help or help(object) in an IPython console to see how it works. And then, try pressing the Tab key after typing the dot (.) after a Python object variable name. Everything is an object in Python, and you will discover lots of
参考来源
- 位置:《Natural Language Processing in Action, Second Edition》附录B《附录B:Python与正则表达式》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/appendix-b.html)
- 结论依据:摘录中关于帮助与源码反映当前对象版本的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Use all the help that your IPython REPL provides. The built-in help() function is your friend and guide in IPython land. Try typing help or help(object) in an IPython console to see how it works. And then, try pressing the Tab key after typing the dot (.) after a Python object variable name. Everything is an object in Python, and you will discover lots of