python3.7如何运行_Python运行时服务

### 导航

- [索引](../genindex.xhtml "总目录")

- [模块](../py-modindex.xhtml "Python 模块索引") |

- [下一页](sys.xhtml "sys --- 系统相关的参数和函数") |

- [上一页](zipapp.xhtml "zipapp --- Manage executable Python zip archives") |

- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)

- [Python](https://www.python.org/) »

- zh\_CN 3.7.3 [文档](../index.xhtml) »

- [Python 标准库](index.xhtml) »

- $('.inline-search').show(0); |

# Python运行时服务

本章里描述的模块提供了和Python解释器及其环境交互相关的广泛服务。以下是综述:

- [`sys` --- 系统相关的参数和函数](sys.xhtml)

- [`sysconfig` --- Provide access to Python's configuration information](sysconfig.xhtml)

- [配置变量](sysconfig.xhtml#configuration-variables)

- [安装路径](sysconfig.xhtml#installation-paths)

- [其他功能](sysconfig.xhtml#other-functions)

- [Using `sysconfig` as a script](sysconfig.xhtml#using-sysconfig-as-a-script)

- [`builtins` --- 内建对象](builtins.xhtml)

- [`__main__` --- 顶层脚本环境](__main__.xhtml)

- [`warnings` --- Warning control](warnings.xhtml)

- [警告类别](warnings.xhtml#warning-categories)

- [The Warnings Filter](warnings.xhtml#the-warnings-filter)

- [Describing Warning Filters](warnings.xhtml#describing-warning-filters)

- [默认警告过滤器](warnings.xhtml#default-warning-filter)

- [Overriding the default filter](warnings.xhtml#overriding-the-default-filter)

- [暂时禁止警告](warnings.xhtml#temporarily-suppressing-warnings)

- [测试警告](warnings.xhtml#testing-warnings)

- [Updating Code For New Versions of Dependencies](warnings.xhtml#updating-code-for-new-versions-of-dependencies)

- [Available Functions](warnings.xhtml#available-functions)

- [Available Context Managers](warnings.xhtml#available-context-managers)

- [`dataclasses` --- 数据类](dataclasses.xhtml)

- [模块级装饰器、类和函数](dataclasses.xhtml#module-level-decorators-classes-and-functions)

- [初始化后处理](dataclasses.xhtml#post-init-processing)

- [类变量](dataclasses.xhtml#class-variables)

- [仅初始化变量](dataclasses.xhtml#init-only-variables)

- [冻结的实例](dataclasses.xhtml#frozen-instances)

- [继承](dataclasses.xhtml#inheritance)

- [默认工厂函数](dataclasses.xhtml#default-factory-functions)

- [可变的默认值](dataclasses.xhtml#mutable-default-values)

- [异常](dataclasses.xhtml#exceptions)

- [`contextlib` --- Utilities for `with`-statement contexts](contextlib.xhtml)

- [工具](contextlib.xhtml#utilities)

- [例子和配方](contextlib.xhtml#examples-and-recipes)

- [Supporting a variable number of context managers](contextlib.xhtml#supporting-a-variable-number-of-context-managers)

- [Catching exceptions from `__enter__` methods](contextlib.xhtml#catching-exceptions-from-enter-methods)

- [Cleaning up in an `__enter__` implementation](contextlib.xhtml#cleaning-up-in-an-enter-implementation)

- [Replacing any use of `try-finally` and flag variables](contextlib.xhtml#replacing-any-use-of-try-finally-and-flag-variables)

- [Using a context manager as a function decorator](contextlib.xhtml#using-a-context-manager-as-a-function-decorator)

- [Single use, reusable and reentrant context managers](contextlib.xhtml#single-use-reusable-and-reentrant-context-managers)

- [Reentrant context managers](contextlib.xhtml#reentrant-context-managers)

- [Reusable context managers](contextlib.xhtml#reusable-context-managers)

- [`abc` --- 抽象基类](abc.xhtml)

- [`atexit` --- 退出处理器](atexit.xhtml)

- [`atexit` 示例](atexit.xhtml#atexit-example)

- [`traceback` --- Print or retrieve a stack traceback](traceback.xhtml)

- [`TracebackException` Objects](traceback.xhtml#tracebackexception-objects)

- [`StackSummary` Objects](traceback.xhtml#stacksummary-objects)

- [`FrameSummary` Objects](traceback.xhtml#framesummary-objects)

- [Traceback Examples](traceback.xhtml#traceback-examples)

- [`__future__` --- Future 语句定义](__future__.xhtml)

- [`gc` --- 垃圾回收器接口](gc.xhtml)

- [`inspect` --- 检查对象](inspect.xhtml)

- [类型和成员](inspect.xhtml#types-and-members)

- [Retrieving source code](inspect.xhtml#retrieving-source-code)

- [Introspecting callables with the Signature object](inspect.xhtml#introspecting-callables-with-the-signature-object)

- [Classes and functions](inspect.xhtml#classes-and-functions)

- [The interpreter stack](inspect.xhtml#the-interpreter-stack)

- [Fetching attributes statically](inspect.xhtml#fetching-attributes-statically)

- [Current State of Generators and Coroutines](inspect.xhtml#current-state-of-generators-and-coroutines)

- [Code Objects Bit Flags](inspect.xhtml#code-objects-bit-flags)

- [Command Line Interface](inspect.xhtml#command-line-interface)

- [`site` --- Site-specific configuration hook](site.xhtml)

- [Readline configuration](site.xhtml#readline-configuration)

- [Module contents](site.xhtml#module-contents)

### 导航

- [索引](../genindex.xhtml "总目录")

- [模块](../py-modindex.xhtml "Python 模块索引") |

- [下一页](sys.xhtml "sys --- 系统相关的参数和函数") |

- [上一页](zipapp.xhtml "zipapp --- Manage executable Python zip archives") |

- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)

- [Python](https://www.python.org/) »

- zh\_CN 3.7.3 [文档](../index.xhtml) »

- [Python 标准库](index.xhtml) »

- $('.inline-search').show(0); |

© [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation.

Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/)

最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)?

使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值