python信息功能:它在哪里?

python信息功能:它在哪里?,第1张

概述从 Dive into Python开始: Python has a function called info. Try it yourself and skim through the list now. >>> from apihelper import info>>> import __builtin__>>> info(__builtin__, 20)ArithmeticError 从 Dive into Python开始:

Python has a function called info. Try it yourself and skim through
the List Now.

>>> from APIhelper import info>>> import __builtin__>>> info(__builtin__,20)ArithmeticError      Base class for arithmetic errors.AssertionError       Assertion Failed.AttributeError       Attribute not found.EOFError             Read beyond end of file.EnvironmentError     Base class for I/O related errors.Exception            Common base class for all exceptions.floatingPointError   floating point operation Failed.IOError              I/O operation Failed.

事实证明,Python没有名为info的函数.这本书指的是什么?

解决方法 我不知道为什么dive Into Python声称“Python有一个叫做info的函数”,但显然不是这样.

APIhelper.py(从中导入信息)在本书in section 4.1的前面描述,它只是Mark Pilgrim编写的用于dive Into Python的模块.该APIhelper模块显然确实包含一个信息函数,该函数执行您链接的4.3.3节中声明的内容.

总结

以上是内存溢出为你收集整理的python信息功能:它在哪里?全部内容,希望文章能够帮你解决python信息功能:它在哪里?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1193014.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-03
下一篇2022-06-03

发表评论

登录后才能评论

评论列表(0条)

    保存