gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

329 lines
14KB

  1. <!DOCTYPE html>
  2. <html lang="en" data-content_root="./">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>3.12.3 Documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=80d5e7a1" />
  7. <link rel="stylesheet" type="text/css" href="_static/pydoctheme.css?v=bb723527" />
  8. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="_static/pygments_dark.css?v=b20cc3f5" />
  9. <script src="_static/documentation_options.js?v=2c828074"></script>
  10. <script src="_static/doctools.js?v=888ff710"></script>
  11. <script src="_static/sphinx_highlight.js?v=dc90522c"></script>
  12. <script src="_static/sidebar.js"></script>
  13. <link rel="search" type="application/opensearchdescription+xml"
  14. title="Search within Python 3.12.3 documentation"
  15. href="_static/opensearch.xml"/>
  16. <link rel="author" title="About these documents" href="about.html" />
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="copyright" title="Copyright" href="copyright.html" />
  20. <link rel="canonical" href="https://docs.python.org/3/index.html" />
  21. <style>
  22. @media only screen {
  23. table.full-width-table {
  24. width: 100%;
  25. }
  26. }
  27. </style>
  28. <link rel="stylesheet" href="_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  29. <link rel="shortcut icon" type="image/png" href="_static/py.svg" />
  30. <script type="text/javascript" src="_static/copybutton.js"></script>
  31. <script type="text/javascript" src="_static/menu.js"></script>
  32. <script type="text/javascript" src="_static/search-focus.js"></script>
  33. <script type="text/javascript" src="_static/themetoggle.js"></script>
  34. </head>
  35. <body>
  36. <div class="mobile-nav">
  37. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  38. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  39. <nav class="nav-content" role="navigation">
  40. <label for="menuToggler" class="toggler__label">
  41. <span></span>
  42. </label>
  43. <span class="nav-items-wrapper">
  44. <a href="https://www.python.org/" class="nav-logo">
  45. <img src="_static/py.svg" alt="Python logo"/>
  46. </a>
  47. <span class="version_switcher_placeholder"></span>
  48. <form role="search" class="search" action="search.html" method="get">
  49. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  50. <path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
  51. </svg>
  52. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  53. <input type="submit" value="Go"/>
  54. </form>
  55. </span>
  56. </nav>
  57. <div class="menu-wrapper">
  58. <nav class="menu" role="navigation" aria-label="main navigation">
  59. <div class="language_switcher_placeholder"></div>
  60. <label class="theme-selector-label">
  61. Theme
  62. <select class="theme-selector" oninput="activateTheme(this.value)">
  63. <option value="auto" selected>Auto</option>
  64. <option value="light">Light</option>
  65. <option value="dark">Dark</option>
  66. </select>
  67. </label><h3>Download</h3>
  68. <p><a href="download.html">Download these documents</a></p>
  69. <h3>Docs by version</h3>
  70. <ul>
  71. <li><a href="https://docs.python.org/">Stable</a></li>
  72. <li><a href="https://docs.python.org/dev/">In development</a></li>
  73. <li><a href="https://www.python.org/doc/versions/">All versions</a></li>
  74. </ul>
  75. <h3>Other resources</h3>
  76. <ul>
  77. <li><a href="https://peps.python.org/">PEP Index</a></li>
  78. <li><a href="https://wiki.python.org/moin/BeginnersGuide">Beginner's Guide</a></li>
  79. <li><a href="https://wiki.python.org/moin/PythonBooks">Book List</a></li>
  80. <li><a href="https://www.python.org/doc/av/">Audio/Visual Talks</a></li>
  81. <li><a href="https://devguide.python.org/">Python Developer’s Guide</a></li>
  82. </ul>
  83. </nav>
  84. </div>
  85. </div>
  86. <div class="related" role="navigation" aria-label="related navigation">
  87. <h3>Navigation</h3>
  88. <ul>
  89. <li class="right" style="margin-right: 10px">
  90. <a href="genindex.html" title="General Index"
  91. accesskey="I">index</a></li>
  92. <li class="right" >
  93. <a href="py-modindex.html" title="Python Module Index"
  94. >modules</a> |</li>
  95. <li><img src="_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  96. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  97. <li class="switchers">
  98. <div class="language_switcher_placeholder"></div>
  99. <div class="version_switcher_placeholder"></div>
  100. </li>
  101. <li>
  102. </li>
  103. <li id="cpython-language-and-version">
  104. <a href="#">3.12.3 Documentation</a> &#187;
  105. </li>
  106. <li class="nav-item nav-item-this"><a href=""></a></li>
  107. <li class="right">
  108. <div class="inline-search" role="search">
  109. <form class="inline-search" action="search.html" method="get">
  110. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  111. <input type="submit" value="Go" />
  112. </form>
  113. </div>
  114. |
  115. </li>
  116. <li class="right">
  117. <label class="theme-selector-label">
  118. Theme
  119. <select class="theme-selector" oninput="activateTheme(this.value)">
  120. <option value="auto" selected>Auto</option>
  121. <option value="light">Light</option>
  122. <option value="dark">Dark</option>
  123. </select>
  124. </label> |</li>
  125. </ul>
  126. </div>
  127. <div class="document">
  128. <div class="documentwrapper">
  129. <div class="bodywrapper">
  130. <div class="body" role="main">
  131. <h1>Python 3.12.3 documentation</h1>
  132. <p>
  133. Welcome! This is the official documentation for Python 3.12.3.
  134. </p>
  135. <p><strong>Documentation sections:</strong></p>
  136. <table class="contentstable" align="center"><tr>
  137. <td width="50%">
  138. <p class="biglink"><a class="biglink" href="whatsnew/3.12.html">What's new in Python 3.12?</a><br/>
  139. <span class="linkdescr"> Or <a href="whatsnew/index.html">all "What's new" documents since Python 2.0</a></span></p>
  140. <p class="biglink"><a class="biglink" href="tutorial/index.html">Tutorial</a><br/>
  141. <span class="linkdescr">Start here: a tour of Python's syntax and features</span></p>
  142. <p class="biglink"><a class="biglink" href="library/index.html">Library reference</a><br/>
  143. <span class="linkdescr">Standard library and builtins</span></p>
  144. <p class="biglink"><a class="biglink" href="reference/index.html">Language reference</a><br/>
  145. <span class="linkdescr">Syntax and language elements</span></p>
  146. <p class="biglink"><a class="biglink" href="using/index.html">Python setup and usage</a><br/>
  147. <span class="linkdescr">How to install, configure, and use Python</span></p>
  148. <p class="biglink"><a class="biglink" href="howto/index.html">Python HOWTOs</a><br/>
  149. <span class="linkdescr">In-depth topic manuals</span></p>
  150. </td><td width="50%">
  151. <p class="biglink"><a class="biglink" href="installing/index.html">Installing Python modules</a><br/>
  152. <span class="linkdescr">Third-party modules and PyPI.org</span></p>
  153. <p class="biglink"><a class="biglink" href="distributing/index.html">Distributing Python modules</a><br/>
  154. <span class="linkdescr">Publishing modules for use by other people</span></p>
  155. <p class="biglink"><a class="biglink" href="extending/index.html">Extending and embedding</a><br/>
  156. <span class="linkdescr">For C/C++ programmers</span></p>
  157. <p class="biglink"><a class="biglink" href="c-api/index.html">Python's C API</a><br/>
  158. <span class="linkdescr">C API reference</span></p>
  159. <p class="biglink"><a class="biglink" href="faq/index.html">FAQs</a><br/>
  160. <span class="linkdescr">Frequently asked questions (with answers!)</span></p>
  161. </td></tr>
  162. </table>
  163. <p><strong>Indices, glossary, and search:</strong></p>
  164. <table class="contentstable" align="center"><tr>
  165. <td width="50%">
  166. <p class="biglink"><a class="biglink" href="py-modindex.html">Global module index</a><br/>
  167. <span class="linkdescr">All modules and libraries</span></p>
  168. <p class="biglink"><a class="biglink" href="genindex.html">General index</a><br/>
  169. <span class="linkdescr">All functions, classes, and terms</span></p>
  170. <p class="biglink"><a class="biglink" href="glossary.html">Glossary</a><br/>
  171. <span class="linkdescr">Terms explained</span></p>
  172. </td><td width="50%">
  173. <p class="biglink"><a class="biglink" href="search.html">Search page</a><br/>
  174. <span class="linkdescr">Search this documentation</span></p>
  175. <p class="biglink"><a class="biglink" href="contents.html">Complete table of contents</a><br/>
  176. <span class="linkdescr">Lists all sections and subsections</span></p>
  177. </td></tr>
  178. </table>
  179. <p><strong>Project information:</strong></p>
  180. <table class="contentstable" align="center"><tr>
  181. <td width="50%">
  182. <p class="biglink"><a class="biglink" href="bugs.html">Reporting issues</a></p>
  183. <p class="biglink"><a class="biglink" href="https://devguide.python.org/docquality/#helping-with-documentation">Contributing to Docs</a></p>
  184. <p class="biglink"><a class="biglink" href="download.html">Download the documentation</a></p>
  185. </td><td width="50%">
  186. <p class="biglink"><a class="biglink" href="license.html">History and license of Python</a></p>
  187. <p class="biglink"><a class="biglink" href="copyright.html">Copyright</a></p>
  188. <p class="biglink"><a class="biglink" href="about.html">About the documentation</a></p>
  189. </td></tr>
  190. </table>
  191. <div class="clearer"></div>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  196. <div class="sphinxsidebarwrapper"><h3>Download</h3>
  197. <p><a href="download.html">Download these documents</a></p>
  198. <h3>Docs by version</h3>
  199. <ul>
  200. <li><a href="https://docs.python.org/">Stable</a></li>
  201. <li><a href="https://docs.python.org/dev/">In development</a></li>
  202. <li><a href="https://www.python.org/doc/versions/">All versions</a></li>
  203. </ul>
  204. <h3>Other resources</h3>
  205. <ul>
  206. <li><a href="https://peps.python.org/">PEP Index</a></li>
  207. <li><a href="https://wiki.python.org/moin/BeginnersGuide">Beginner's Guide</a></li>
  208. <li><a href="https://wiki.python.org/moin/PythonBooks">Book List</a></li>
  209. <li><a href="https://www.python.org/doc/av/">Audio/Visual Talks</a></li>
  210. <li><a href="https://devguide.python.org/">Python Developer’s Guide</a></li>
  211. </ul>
  212. </div>
  213. <div id="sidebarbutton" title="Collapse sidebar">
  214. <span>«</span>
  215. </div>
  216. </div>
  217. <div class="clearer"></div>
  218. </div>
  219. <div class="related" role="navigation" aria-label="related navigation">
  220. <h3>Navigation</h3>
  221. <ul>
  222. <li class="right" style="margin-right: 10px">
  223. <a href="genindex.html" title="General Index"
  224. >index</a></li>
  225. <li class="right" >
  226. <a href="py-modindex.html" title="Python Module Index"
  227. >modules</a> |</li>
  228. <li><img src="_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  229. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  230. <li class="switchers">
  231. <div class="language_switcher_placeholder"></div>
  232. <div class="version_switcher_placeholder"></div>
  233. </li>
  234. <li>
  235. </li>
  236. <li id="cpython-language-and-version">
  237. <a href="#">3.12.3 Documentation</a> &#187;
  238. </li>
  239. <li class="nav-item nav-item-this"><a href=""></a></li>
  240. <li class="right">
  241. <div class="inline-search" role="search">
  242. <form class="inline-search" action="search.html" method="get">
  243. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  244. <input type="submit" value="Go" />
  245. </form>
  246. </div>
  247. |
  248. </li>
  249. <li class="right">
  250. <label class="theme-selector-label">
  251. Theme
  252. <select class="theme-selector" oninput="activateTheme(this.value)">
  253. <option value="auto" selected>Auto</option>
  254. <option value="light">Light</option>
  255. <option value="dark">Dark</option>
  256. </select>
  257. </label> |</li>
  258. </ul>
  259. </div>
  260. <div class="footer">
  261. &copy;
  262. <a href="copyright.html">
  263. Copyright
  264. </a>
  265. 2001-2024, Python Software Foundation.
  266. <br />
  267. This page is licensed under the Python Software Foundation License Version 2.
  268. <br />
  269. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  270. <br />
  271. See <a href="/license.html">History and License</a> for more information.<br />
  272. <br />
  273. The Python Software Foundation is a non-profit corporation.
  274. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  275. <br />
  276. <br />
  277. Last updated on Apr 09, 2024 (13:47 UTC).
  278. <a href="/bugs.html">Found a bug</a>?
  279. <br />
  280. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
  281. </div>
  282. </body>
  283. </html>
上海开阖软件有限公司 沪ICP备12045867号-1