重庆营销型网站随做的好/南昌seo网站管理
如何通过命令查看python中的所有内置函数和内置常量
举例python版本:
利用python中的语句输出python中的所有内置函数及内置常量名:dir(__builtin__)
相关推荐:《Python基础教程》
输出一个列表:In [1]: dir(__builtin__)
Out[1]:
['ArithmeticError',
'AssertionError',
'AttributeError',
'BaseException',
'BlockingIOError',
'BrokenPipeError',
'BufferError',
'BytesWarning',
'ChildProcessError',
'ConnectionAbortedError',
'ConnectionError',
'ConnectionRefusedError',
'ConnectionResetError',
'DeprecationWarning',
'EOFError',
'Ellipsis',
'EnvironmentError',
'Exception',
'False',