gooderp18绿色标准版
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

415 lines
25KB

  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" /><meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta property="og:title" content="The Python Language Reference" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/reference/index.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="This reference manual describes the syntax and “core semantics” of the language. It is terse, but attempts to be exact and complete. The semantics of non-essential built-in object types and of the ..." />
  11. <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
  12. <meta property="og:image:alt" content="Python documentation" />
  13. <meta name="description" content="This reference manual describes the syntax and “core semantics” of the language. It is terse, but attempts to be exact and complete. The semantics of non-essential built-in object types and of the ..." />
  14. <meta property="og:image:width" content="200" />
  15. <meta property="og:image:height" content="200" />
  16. <meta name="theme-color" content="#3776ab" />
  17. <title>The Python Language Reference &#8212; Python 3.12.3 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
  19. <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=bb723527" />
  20. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=b20cc3f5" />
  21. <script src="../_static/documentation_options.js?v=2c828074"></script>
  22. <script src="../_static/doctools.js?v=888ff710"></script>
  23. <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
  24. <script src="../_static/sidebar.js"></script>
  25. <link rel="search" type="application/opensearchdescription+xml"
  26. title="Search within Python 3.12.3 documentation"
  27. href="../_static/opensearch.xml"/>
  28. <link rel="author" title="About these documents" href="../about.html" />
  29. <link rel="index" title="Index" href="../genindex.html" />
  30. <link rel="search" title="Search" href="../search.html" />
  31. <link rel="copyright" title="Copyright" href="../copyright.html" />
  32. <link rel="next" title="1. Introduction" href="introduction.html" />
  33. <link rel="prev" title="6. Editors and IDEs" href="../using/editors.html" />
  34. <link rel="canonical" href="https://docs.python.org/3/reference/index.html" />
  35. <style>
  36. @media only screen {
  37. table.full-width-table {
  38. width: 100%;
  39. }
  40. }
  41. </style>
  42. <link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  43. <link rel="shortcut icon" type="image/png" href="../_static/py.svg" />
  44. <script type="text/javascript" src="../_static/copybutton.js"></script>
  45. <script type="text/javascript" src="../_static/menu.js"></script>
  46. <script type="text/javascript" src="../_static/search-focus.js"></script>
  47. <script type="text/javascript" src="../_static/themetoggle.js"></script>
  48. </head>
  49. <body>
  50. <div class="mobile-nav">
  51. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  52. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  53. <nav class="nav-content" role="navigation">
  54. <label for="menuToggler" class="toggler__label">
  55. <span></span>
  56. </label>
  57. <span class="nav-items-wrapper">
  58. <a href="https://www.python.org/" class="nav-logo">
  59. <img src="../_static/py.svg" alt="Python logo"/>
  60. </a>
  61. <span class="version_switcher_placeholder"></span>
  62. <form role="search" class="search" action="../search.html" method="get">
  63. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  64. <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>
  65. </svg>
  66. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  67. <input type="submit" value="Go"/>
  68. </form>
  69. </span>
  70. </nav>
  71. <div class="menu-wrapper">
  72. <nav class="menu" role="navigation" aria-label="main navigation">
  73. <div class="language_switcher_placeholder"></div>
  74. <label class="theme-selector-label">
  75. Theme
  76. <select class="theme-selector" oninput="activateTheme(this.value)">
  77. <option value="auto" selected>Auto</option>
  78. <option value="light">Light</option>
  79. <option value="dark">Dark</option>
  80. </select>
  81. </label>
  82. <div>
  83. <h4>Previous topic</h4>
  84. <p class="topless"><a href="../using/editors.html"
  85. title="previous chapter"><span class="section-number">6. </span>Editors and IDEs</a></p>
  86. </div>
  87. <div>
  88. <h4>Next topic</h4>
  89. <p class="topless"><a href="introduction.html"
  90. title="next chapter"><span class="section-number">1. </span>Introduction</a></p>
  91. </div>
  92. <div role="note" aria-label="source link">
  93. <h3>This Page</h3>
  94. <ul class="this-page-menu">
  95. <li><a href="../bugs.html">Report a Bug</a></li>
  96. <li>
  97. <a href="https://github.com/python/cpython/blob/main/Doc/reference/index.rst"
  98. rel="nofollow">Show Source
  99. </a>
  100. </li>
  101. </ul>
  102. </div>
  103. </nav>
  104. </div>
  105. </div>
  106. <div class="related" role="navigation" aria-label="related navigation">
  107. <h3>Navigation</h3>
  108. <ul>
  109. <li class="right" style="margin-right: 10px">
  110. <a href="../genindex.html" title="General Index"
  111. accesskey="I">index</a></li>
  112. <li class="right" >
  113. <a href="../py-modindex.html" title="Python Module Index"
  114. >modules</a> |</li>
  115. <li class="right" >
  116. <a href="introduction.html" title="1. Introduction"
  117. accesskey="N">next</a> |</li>
  118. <li class="right" >
  119. <a href="../using/editors.html" title="6. Editors and IDEs"
  120. accesskey="P">previous</a> |</li>
  121. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  122. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  123. <li class="switchers">
  124. <div class="language_switcher_placeholder"></div>
  125. <div class="version_switcher_placeholder"></div>
  126. </li>
  127. <li>
  128. </li>
  129. <li id="cpython-language-and-version">
  130. <a href="../index.html">3.12.3 Documentation</a> &#187;
  131. </li>
  132. <li class="nav-item nav-item-this"><a href="">The Python Language Reference</a></li>
  133. <li class="right">
  134. <div class="inline-search" role="search">
  135. <form class="inline-search" action="../search.html" method="get">
  136. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  137. <input type="submit" value="Go" />
  138. </form>
  139. </div>
  140. |
  141. </li>
  142. <li class="right">
  143. <label class="theme-selector-label">
  144. Theme
  145. <select class="theme-selector" oninput="activateTheme(this.value)">
  146. <option value="auto" selected>Auto</option>
  147. <option value="light">Light</option>
  148. <option value="dark">Dark</option>
  149. </select>
  150. </label> |</li>
  151. </ul>
  152. </div>
  153. <div class="document">
  154. <div class="documentwrapper">
  155. <div class="bodywrapper">
  156. <div class="body" role="main">
  157. <section id="the-python-language-reference">
  158. <span id="reference-index"></span><h1>The Python Language Reference<a class="headerlink" href="#the-python-language-reference" title="Link to this heading">¶</a></h1>
  159. <p>This reference manual describes the syntax and “core semantics” of the
  160. language. It is terse, but attempts to be exact and complete. The semantics of
  161. non-essential built-in object types and of the built-in functions and modules
  162. are described in <a class="reference internal" href="../library/index.html#library-index"><span class="std std-ref">The Python Standard Library</span></a>. For an informal introduction to the
  163. language, see <a class="reference internal" href="../tutorial/index.html#tutorial-index"><span class="std std-ref">The Python Tutorial</span></a>. For C or C++ programmers, two additional
  164. manuals exist: <a class="reference internal" href="../extending/index.html#extending-index"><span class="std std-ref">Extending and Embedding the Python Interpreter</span></a> describes the high-level picture of how to
  165. write a Python extension module, and the <a class="reference internal" href="../c-api/index.html#c-api-index"><span class="std std-ref">Python/C API Reference Manual</span></a> describes the
  166. interfaces available to C/C++ programmers in detail.</p>
  167. <div class="toctree-wrapper compound">
  168. <ul>
  169. <li class="toctree-l1"><a class="reference internal" href="introduction.html">1. Introduction</a><ul>
  170. <li class="toctree-l2"><a class="reference internal" href="introduction.html#alternate-implementations">1.1. Alternate Implementations</a></li>
  171. <li class="toctree-l2"><a class="reference internal" href="introduction.html#notation">1.2. Notation</a></li>
  172. </ul>
  173. </li>
  174. <li class="toctree-l1"><a class="reference internal" href="lexical_analysis.html">2. Lexical analysis</a><ul>
  175. <li class="toctree-l2"><a class="reference internal" href="lexical_analysis.html#line-structure">2.1. Line structure</a></li>
  176. <li class="toctree-l2"><a class="reference internal" href="lexical_analysis.html#other-tokens">2.2. Other tokens</a></li>
  177. <li class="toctree-l2"><a class="reference internal" href="lexical_analysis.html#identifiers">2.3. Identifiers and keywords</a></li>
  178. <li class="toctree-l2"><a class="reference internal" href="lexical_analysis.html#literals">2.4. Literals</a></li>
  179. <li class="toctree-l2"><a class="reference internal" href="lexical_analysis.html#operators">2.5. Operators</a></li>
  180. <li class="toctree-l2"><a class="reference internal" href="lexical_analysis.html#delimiters">2.6. Delimiters</a></li>
  181. </ul>
  182. </li>
  183. <li class="toctree-l1"><a class="reference internal" href="datamodel.html">3. Data model</a><ul>
  184. <li class="toctree-l2"><a class="reference internal" href="datamodel.html#objects-values-and-types">3.1. Objects, values and types</a></li>
  185. <li class="toctree-l2"><a class="reference internal" href="datamodel.html#the-standard-type-hierarchy">3.2. The standard type hierarchy</a></li>
  186. <li class="toctree-l2"><a class="reference internal" href="datamodel.html#special-method-names">3.3. Special method names</a></li>
  187. <li class="toctree-l2"><a class="reference internal" href="datamodel.html#coroutines">3.4. Coroutines</a></li>
  188. </ul>
  189. </li>
  190. <li class="toctree-l1"><a class="reference internal" href="executionmodel.html">4. Execution model</a><ul>
  191. <li class="toctree-l2"><a class="reference internal" href="executionmodel.html#structure-of-a-program">4.1. Structure of a program</a></li>
  192. <li class="toctree-l2"><a class="reference internal" href="executionmodel.html#naming-and-binding">4.2. Naming and binding</a></li>
  193. <li class="toctree-l2"><a class="reference internal" href="executionmodel.html#exceptions">4.3. Exceptions</a></li>
  194. </ul>
  195. </li>
  196. <li class="toctree-l1"><a class="reference internal" href="import.html">5. The import system</a><ul>
  197. <li class="toctree-l2"><a class="reference internal" href="import.html#importlib">5.1. <code class="xref py py-mod docutils literal notranslate"><span class="pre">importlib</span></code></a></li>
  198. <li class="toctree-l2"><a class="reference internal" href="import.html#packages">5.2. Packages</a></li>
  199. <li class="toctree-l2"><a class="reference internal" href="import.html#searching">5.3. Searching</a></li>
  200. <li class="toctree-l2"><a class="reference internal" href="import.html#loading">5.4. Loading</a></li>
  201. <li class="toctree-l2"><a class="reference internal" href="import.html#the-path-based-finder">5.5. The Path Based Finder</a></li>
  202. <li class="toctree-l2"><a class="reference internal" href="import.html#replacing-the-standard-import-system">5.6. Replacing the standard import system</a></li>
  203. <li class="toctree-l2"><a class="reference internal" href="import.html#package-relative-imports">5.7. Package Relative Imports</a></li>
  204. <li class="toctree-l2"><a class="reference internal" href="import.html#special-considerations-for-main">5.8. Special considerations for __main__</a></li>
  205. <li class="toctree-l2"><a class="reference internal" href="import.html#references">5.9. References</a></li>
  206. </ul>
  207. </li>
  208. <li class="toctree-l1"><a class="reference internal" href="expressions.html">6. Expressions</a><ul>
  209. <li class="toctree-l2"><a class="reference internal" href="expressions.html#arithmetic-conversions">6.1. Arithmetic conversions</a></li>
  210. <li class="toctree-l2"><a class="reference internal" href="expressions.html#atoms">6.2. Atoms</a></li>
  211. <li class="toctree-l2"><a class="reference internal" href="expressions.html#primaries">6.3. Primaries</a></li>
  212. <li class="toctree-l2"><a class="reference internal" href="expressions.html#await-expression">6.4. Await expression</a></li>
  213. <li class="toctree-l2"><a class="reference internal" href="expressions.html#the-power-operator">6.5. The power operator</a></li>
  214. <li class="toctree-l2"><a class="reference internal" href="expressions.html#unary-arithmetic-and-bitwise-operations">6.6. Unary arithmetic and bitwise operations</a></li>
  215. <li class="toctree-l2"><a class="reference internal" href="expressions.html#binary-arithmetic-operations">6.7. Binary arithmetic operations</a></li>
  216. <li class="toctree-l2"><a class="reference internal" href="expressions.html#shifting-operations">6.8. Shifting operations</a></li>
  217. <li class="toctree-l2"><a class="reference internal" href="expressions.html#binary-bitwise-operations">6.9. Binary bitwise operations</a></li>
  218. <li class="toctree-l2"><a class="reference internal" href="expressions.html#comparisons">6.10. Comparisons</a></li>
  219. <li class="toctree-l2"><a class="reference internal" href="expressions.html#boolean-operations">6.11. Boolean operations</a></li>
  220. <li class="toctree-l2"><a class="reference internal" href="expressions.html#assignment-expressions">6.12. Assignment expressions</a></li>
  221. <li class="toctree-l2"><a class="reference internal" href="expressions.html#conditional-expressions">6.13. Conditional expressions</a></li>
  222. <li class="toctree-l2"><a class="reference internal" href="expressions.html#lambda">6.14. Lambdas</a></li>
  223. <li class="toctree-l2"><a class="reference internal" href="expressions.html#expression-lists">6.15. Expression lists</a></li>
  224. <li class="toctree-l2"><a class="reference internal" href="expressions.html#evaluation-order">6.16. Evaluation order</a></li>
  225. <li class="toctree-l2"><a class="reference internal" href="expressions.html#operator-precedence">6.17. Operator precedence</a></li>
  226. </ul>
  227. </li>
  228. <li class="toctree-l1"><a class="reference internal" href="simple_stmts.html">7. Simple statements</a><ul>
  229. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#expression-statements">7.1. Expression statements</a></li>
  230. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#assignment-statements">7.2. Assignment statements</a></li>
  231. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-assert-statement">7.3. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">assert</span></code> statement</a></li>
  232. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-pass-statement">7.4. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">pass</span></code> statement</a></li>
  233. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-del-statement">7.5. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">del</span></code> statement</a></li>
  234. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-return-statement">7.6. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">return</span></code> statement</a></li>
  235. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-yield-statement">7.7. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code> statement</a></li>
  236. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-raise-statement">7.8. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">raise</span></code> statement</a></li>
  237. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-break-statement">7.9. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">break</span></code> statement</a></li>
  238. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-continue-statement">7.10. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">continue</span></code> statement</a></li>
  239. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-import-statement">7.11. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">import</span></code> statement</a></li>
  240. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-global-statement">7.12. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">global</span></code> statement</a></li>
  241. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-nonlocal-statement">7.13. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">nonlocal</span></code> statement</a></li>
  242. <li class="toctree-l2"><a class="reference internal" href="simple_stmts.html#the-type-statement">7.14. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">type</span></code> statement</a></li>
  243. </ul>
  244. </li>
  245. <li class="toctree-l1"><a class="reference internal" href="compound_stmts.html">8. Compound statements</a><ul>
  246. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#the-if-statement">8.1. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code> statement</a></li>
  247. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#the-while-statement">8.2. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">while</span></code> statement</a></li>
  248. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#the-for-statement">8.3. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code> statement</a></li>
  249. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#the-try-statement">8.4. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">try</span></code> statement</a></li>
  250. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#the-with-statement">8.5. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">with</span></code> statement</a></li>
  251. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#the-match-statement">8.6. The <code class="xref std std-keyword docutils literal notranslate"><span class="pre">match</span></code> statement</a></li>
  252. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#function-definitions">8.7. Function definitions</a></li>
  253. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#class-definitions">8.8. Class definitions</a></li>
  254. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#coroutines">8.9. Coroutines</a></li>
  255. <li class="toctree-l2"><a class="reference internal" href="compound_stmts.html#type-parameter-lists">8.10. Type parameter lists</a></li>
  256. </ul>
  257. </li>
  258. <li class="toctree-l1"><a class="reference internal" href="toplevel_components.html">9. Top-level components</a><ul>
  259. <li class="toctree-l2"><a class="reference internal" href="toplevel_components.html#complete-python-programs">9.1. Complete Python programs</a></li>
  260. <li class="toctree-l2"><a class="reference internal" href="toplevel_components.html#file-input">9.2. File input</a></li>
  261. <li class="toctree-l2"><a class="reference internal" href="toplevel_components.html#interactive-input">9.3. Interactive input</a></li>
  262. <li class="toctree-l2"><a class="reference internal" href="toplevel_components.html#expression-input">9.4. Expression input</a></li>
  263. </ul>
  264. </li>
  265. <li class="toctree-l1"><a class="reference internal" href="grammar.html">10. Full Grammar specification</a></li>
  266. </ul>
  267. </div>
  268. </section>
  269. <div class="clearer"></div>
  270. </div>
  271. </div>
  272. </div>
  273. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  274. <div class="sphinxsidebarwrapper">
  275. <div>
  276. <h4>Previous topic</h4>
  277. <p class="topless"><a href="../using/editors.html"
  278. title="previous chapter"><span class="section-number">6. </span>Editors and IDEs</a></p>
  279. </div>
  280. <div>
  281. <h4>Next topic</h4>
  282. <p class="topless"><a href="introduction.html"
  283. title="next chapter"><span class="section-number">1. </span>Introduction</a></p>
  284. </div>
  285. <div role="note" aria-label="source link">
  286. <h3>This Page</h3>
  287. <ul class="this-page-menu">
  288. <li><a href="../bugs.html">Report a Bug</a></li>
  289. <li>
  290. <a href="https://github.com/python/cpython/blob/main/Doc/reference/index.rst"
  291. rel="nofollow">Show Source
  292. </a>
  293. </li>
  294. </ul>
  295. </div>
  296. </div>
  297. <div id="sidebarbutton" title="Collapse sidebar">
  298. <span>«</span>
  299. </div>
  300. </div>
  301. <div class="clearer"></div>
  302. </div>
  303. <div class="related" role="navigation" aria-label="related navigation">
  304. <h3>Navigation</h3>
  305. <ul>
  306. <li class="right" style="margin-right: 10px">
  307. <a href="../genindex.html" title="General Index"
  308. >index</a></li>
  309. <li class="right" >
  310. <a href="../py-modindex.html" title="Python Module Index"
  311. >modules</a> |</li>
  312. <li class="right" >
  313. <a href="introduction.html" title="1. Introduction"
  314. >next</a> |</li>
  315. <li class="right" >
  316. <a href="../using/editors.html" title="6. Editors and IDEs"
  317. >previous</a> |</li>
  318. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  319. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  320. <li class="switchers">
  321. <div class="language_switcher_placeholder"></div>
  322. <div class="version_switcher_placeholder"></div>
  323. </li>
  324. <li>
  325. </li>
  326. <li id="cpython-language-and-version">
  327. <a href="../index.html">3.12.3 Documentation</a> &#187;
  328. </li>
  329. <li class="nav-item nav-item-this"><a href="">The Python Language Reference</a></li>
  330. <li class="right">
  331. <div class="inline-search" role="search">
  332. <form class="inline-search" action="../search.html" method="get">
  333. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  334. <input type="submit" value="Go" />
  335. </form>
  336. </div>
  337. |
  338. </li>
  339. <li class="right">
  340. <label class="theme-selector-label">
  341. Theme
  342. <select class="theme-selector" oninput="activateTheme(this.value)">
  343. <option value="auto" selected>Auto</option>
  344. <option value="light">Light</option>
  345. <option value="dark">Dark</option>
  346. </select>
  347. </label> |</li>
  348. </ul>
  349. </div>
  350. <div class="footer">
  351. &copy;
  352. <a href="../copyright.html">
  353. Copyright
  354. </a>
  355. 2001-2024, Python Software Foundation.
  356. <br />
  357. This page is licensed under the Python Software Foundation License Version 2.
  358. <br />
  359. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  360. <br />
  361. See <a href="/license.html">History and License</a> for more information.<br />
  362. <br />
  363. The Python Software Foundation is a non-profit corporation.
  364. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  365. <br />
  366. <br />
  367. Last updated on Apr 09, 2024 (13:47 UTC).
  368. <a href="/bugs.html">Found a bug</a>?
  369. <br />
  370. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
  371. </div>
  372. </body>
  373. </html>
上海开阖软件有限公司 沪ICP备12045867号-1