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.

457 lines
24KB

  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="tomllib — Parse TOML files" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/library/tomllib.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="Source code: Lib/tomllib This module provides an interface for parsing TOML (Tom’s Obvious Minimal Language, https://toml.io). This module does not support writing TOML. This module defines the fol..." />
  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="Source code: Lib/tomllib This module provides an interface for parsing TOML (Tom’s Obvious Minimal Language, https://toml.io). This module does not support writing TOML. This module defines the fol..." />
  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>tomllib — Parse TOML files &#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="netrc — netrc file processing" href="netrc.html" />
  33. <link rel="prev" title="configparser — Configuration file parser" href="configparser.html" />
  34. <link rel="canonical" href="https://docs.python.org/3/library/tomllib.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. <h3><a href="../contents.html">Table of Contents</a></h3>
  84. <ul>
  85. <li><a class="reference internal" href="#"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tomllib</span></code> — Parse TOML files</a><ul>
  86. <li><a class="reference internal" href="#examples">Examples</a></li>
  87. <li><a class="reference internal" href="#conversion-table">Conversion Table</a></li>
  88. </ul>
  89. </li>
  90. </ul>
  91. </div>
  92. <div>
  93. <h4>Previous topic</h4>
  94. <p class="topless"><a href="configparser.html"
  95. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">configparser</span></code> — Configuration file parser</a></p>
  96. </div>
  97. <div>
  98. <h4>Next topic</h4>
  99. <p class="topless"><a href="netrc.html"
  100. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">netrc</span></code> — netrc file processing</a></p>
  101. </div>
  102. <div role="note" aria-label="source link">
  103. <h3>This Page</h3>
  104. <ul class="this-page-menu">
  105. <li><a href="../bugs.html">Report a Bug</a></li>
  106. <li>
  107. <a href="https://github.com/python/cpython/blob/main/Doc/library/tomllib.rst"
  108. rel="nofollow">Show Source
  109. </a>
  110. </li>
  111. </ul>
  112. </div>
  113. </nav>
  114. </div>
  115. </div>
  116. <div class="related" role="navigation" aria-label="related navigation">
  117. <h3>Navigation</h3>
  118. <ul>
  119. <li class="right" style="margin-right: 10px">
  120. <a href="../genindex.html" title="General Index"
  121. accesskey="I">index</a></li>
  122. <li class="right" >
  123. <a href="../py-modindex.html" title="Python Module Index"
  124. >modules</a> |</li>
  125. <li class="right" >
  126. <a href="netrc.html" title="netrc — netrc file processing"
  127. accesskey="N">next</a> |</li>
  128. <li class="right" >
  129. <a href="configparser.html" title="configparser — Configuration file parser"
  130. accesskey="P">previous</a> |</li>
  131. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  132. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  133. <li class="switchers">
  134. <div class="language_switcher_placeholder"></div>
  135. <div class="version_switcher_placeholder"></div>
  136. </li>
  137. <li>
  138. </li>
  139. <li id="cpython-language-and-version">
  140. <a href="../index.html">3.12.3 Documentation</a> &#187;
  141. </li>
  142. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  143. <li class="nav-item nav-item-2"><a href="fileformats.html" accesskey="U">File Formats</a> &#187;</li>
  144. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">tomllib</span></code> — Parse TOML files</a></li>
  145. <li class="right">
  146. <div class="inline-search" role="search">
  147. <form class="inline-search" action="../search.html" method="get">
  148. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  149. <input type="submit" value="Go" />
  150. </form>
  151. </div>
  152. |
  153. </li>
  154. <li class="right">
  155. <label class="theme-selector-label">
  156. Theme
  157. <select class="theme-selector" oninput="activateTheme(this.value)">
  158. <option value="auto" selected>Auto</option>
  159. <option value="light">Light</option>
  160. <option value="dark">Dark</option>
  161. </select>
  162. </label> |</li>
  163. </ul>
  164. </div>
  165. <div class="document">
  166. <div class="documentwrapper">
  167. <div class="bodywrapper">
  168. <div class="body" role="main">
  169. <section id="module-tomllib">
  170. <span id="tomllib-parse-toml-files"></span><h1><a class="reference internal" href="#module-tomllib" title="tomllib: Parse TOML files."><code class="xref py py-mod docutils literal notranslate"><span class="pre">tomllib</span></code></a> — Parse TOML files<a class="headerlink" href="#module-tomllib" title="Link to this heading">¶</a></h1>
  171. <div class="versionadded">
  172. <p><span class="versionmodified added">New in version 3.11.</span></p>
  173. </div>
  174. <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/tomllib">Lib/tomllib</a></p>
  175. <hr class="docutils" />
  176. <p>This module provides an interface for parsing TOML (Tom’s Obvious Minimal
  177. Language, <a class="reference external" href="https://toml.io/en/">https://toml.io</a>). This module does not
  178. support writing TOML.</p>
  179. <div class="admonition seealso">
  180. <p class="admonition-title">See also</p>
  181. <p>The <a class="reference external" href="https://pypi.org/project/tomli-w/">Tomli-W package</a>
  182. is a TOML writer that can be used in conjunction with this module,
  183. providing a write API familiar to users of the standard library
  184. <a class="reference internal" href="marshal.html#module-marshal" title="marshal: Convert Python objects to streams of bytes and back (with different constraints)."><code class="xref py py-mod docutils literal notranslate"><span class="pre">marshal</span></code></a> and <a class="reference internal" href="pickle.html#module-pickle" title="pickle: Convert Python objects to streams of bytes and back."><code class="xref py py-mod docutils literal notranslate"><span class="pre">pickle</span></code></a> modules.</p>
  185. </div>
  186. <div class="admonition seealso">
  187. <p class="admonition-title">See also</p>
  188. <p>The <a class="reference external" href="https://pypi.org/project/tomlkit/">TOML Kit package</a>
  189. is a style-preserving TOML library with both read and write capability.
  190. It is a recommended replacement for this module for editing already
  191. existing TOML files.</p>
  192. </div>
  193. <p>This module defines the following functions:</p>
  194. <dl class="py function">
  195. <dt class="sig sig-object py" id="tomllib.load">
  196. <span class="sig-prename descclassname"><span class="pre">tomllib.</span></span><span class="sig-name descname"><span class="pre">load</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fp</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">/</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parse_float</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">float</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#tomllib.load" title="Link to this definition">¶</a></dt>
  197. <dd><p>Read a TOML file. The first argument should be a readable and binary file object.
  198. Return a <a class="reference internal" href="stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a>. Convert TOML types to Python using this
  199. <a class="reference internal" href="#toml-to-py-table"><span class="std std-ref">conversion table</span></a>.</p>
  200. <p><em>parse_float</em> will be called with the string of every TOML
  201. float to be decoded. By default, this is equivalent to <code class="docutils literal notranslate"><span class="pre">float(num_str)</span></code>.
  202. This can be used to use another datatype or parser for TOML floats
  203. (e.g. <a class="reference internal" href="decimal.html#decimal.Decimal" title="decimal.Decimal"><code class="xref py py-class docutils literal notranslate"><span class="pre">decimal.Decimal</span></code></a>). The callable must not return a
  204. <a class="reference internal" href="stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a> or a <a class="reference internal" href="stdtypes.html#list" title="list"><code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></a>, else a <a class="reference internal" href="exceptions.html#ValueError" title="ValueError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a> is raised.</p>
  205. <p>A <a class="reference internal" href="#tomllib.TOMLDecodeError" title="tomllib.TOMLDecodeError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">TOMLDecodeError</span></code></a> will be raised on an invalid TOML document.</p>
  206. </dd></dl>
  207. <dl class="py function">
  208. <dt class="sig sig-object py" id="tomllib.loads">
  209. <span class="sig-prename descclassname"><span class="pre">tomllib.</span></span><span class="sig-name descname"><span class="pre">loads</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">s</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">/</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parse_float</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">float</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#tomllib.loads" title="Link to this definition">¶</a></dt>
  210. <dd><p>Load TOML from a <a class="reference internal" href="stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> object. Return a <a class="reference internal" href="stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a>. Convert TOML
  211. types to Python using this <a class="reference internal" href="#toml-to-py-table"><span class="std std-ref">conversion table</span></a>. The
  212. <em>parse_float</em> argument has the same meaning as in <a class="reference internal" href="#tomllib.load" title="tomllib.load"><code class="xref py py-func docutils literal notranslate"><span class="pre">load()</span></code></a>.</p>
  213. <p>A <a class="reference internal" href="#tomllib.TOMLDecodeError" title="tomllib.TOMLDecodeError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">TOMLDecodeError</span></code></a> will be raised on an invalid TOML document.</p>
  214. </dd></dl>
  215. <p>The following exceptions are available:</p>
  216. <dl class="py exception">
  217. <dt class="sig sig-object py" id="tomllib.TOMLDecodeError">
  218. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">tomllib.</span></span><span class="sig-name descname"><span class="pre">TOMLDecodeError</span></span><a class="headerlink" href="#tomllib.TOMLDecodeError" title="Link to this definition">¶</a></dt>
  219. <dd><p>Subclass of <a class="reference internal" href="exceptions.html#ValueError" title="ValueError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a>.</p>
  220. </dd></dl>
  221. <section id="examples">
  222. <h2>Examples<a class="headerlink" href="#examples" title="Link to this heading">¶</a></h2>
  223. <p>Parsing a TOML file:</p>
  224. <div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">tomllib</span>
  225. <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;pyproject.toml&quot;</span><span class="p">,</span> <span class="s2">&quot;rb&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
  226. <span class="n">data</span> <span class="o">=</span> <span class="n">tomllib</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
  227. </pre></div>
  228. </div>
  229. <p>Parsing a TOML string:</p>
  230. <div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">tomllib</span>
  231. <span class="n">toml_str</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;</span>
  232. <span class="s2">python-version = &quot;3.11.0&quot;</span>
  233. <span class="s2">python-implementation = &quot;CPython&quot;</span>
  234. <span class="s2">&quot;&quot;&quot;</span>
  235. <span class="n">data</span> <span class="o">=</span> <span class="n">tomllib</span><span class="o">.</span><span class="n">loads</span><span class="p">(</span><span class="n">toml_str</span><span class="p">)</span>
  236. </pre></div>
  237. </div>
  238. </section>
  239. <section id="conversion-table">
  240. <h2>Conversion Table<a class="headerlink" href="#conversion-table" title="Link to this heading">¶</a></h2>
  241. <table class="docutils align-default" id="toml-to-py-table">
  242. <thead>
  243. <tr class="row-odd"><th class="head"><p>TOML</p></th>
  244. <th class="head"><p>Python</p></th>
  245. </tr>
  246. </thead>
  247. <tbody>
  248. <tr class="row-even"><td><p>TOML document</p></td>
  249. <td><p>dict</p></td>
  250. </tr>
  251. <tr class="row-odd"><td><p>string</p></td>
  252. <td><p>str</p></td>
  253. </tr>
  254. <tr class="row-even"><td><p>integer</p></td>
  255. <td><p>int</p></td>
  256. </tr>
  257. <tr class="row-odd"><td><p>float</p></td>
  258. <td><p>float (configurable with <em>parse_float</em>)</p></td>
  259. </tr>
  260. <tr class="row-even"><td><p>boolean</p></td>
  261. <td><p>bool</p></td>
  262. </tr>
  263. <tr class="row-odd"><td><p>offset date-time</p></td>
  264. <td><p>datetime.datetime (<code class="docutils literal notranslate"><span class="pre">tzinfo</span></code> attribute set to an instance of <code class="docutils literal notranslate"><span class="pre">datetime.timezone</span></code>)</p></td>
  265. </tr>
  266. <tr class="row-even"><td><p>local date-time</p></td>
  267. <td><p>datetime.datetime (<code class="docutils literal notranslate"><span class="pre">tzinfo</span></code> attribute set to <code class="docutils literal notranslate"><span class="pre">None</span></code>)</p></td>
  268. </tr>
  269. <tr class="row-odd"><td><p>local date</p></td>
  270. <td><p>datetime.date</p></td>
  271. </tr>
  272. <tr class="row-even"><td><p>local time</p></td>
  273. <td><p>datetime.time</p></td>
  274. </tr>
  275. <tr class="row-odd"><td><p>array</p></td>
  276. <td><p>list</p></td>
  277. </tr>
  278. <tr class="row-even"><td><p>table</p></td>
  279. <td><p>dict</p></td>
  280. </tr>
  281. <tr class="row-odd"><td><p>inline table</p></td>
  282. <td><p>dict</p></td>
  283. </tr>
  284. <tr class="row-even"><td><p>array of tables</p></td>
  285. <td><p>list of dicts</p></td>
  286. </tr>
  287. </tbody>
  288. </table>
  289. </section>
  290. </section>
  291. <div class="clearer"></div>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  296. <div class="sphinxsidebarwrapper">
  297. <div>
  298. <h3><a href="../contents.html">Table of Contents</a></h3>
  299. <ul>
  300. <li><a class="reference internal" href="#"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tomllib</span></code> — Parse TOML files</a><ul>
  301. <li><a class="reference internal" href="#examples">Examples</a></li>
  302. <li><a class="reference internal" href="#conversion-table">Conversion Table</a></li>
  303. </ul>
  304. </li>
  305. </ul>
  306. </div>
  307. <div>
  308. <h4>Previous topic</h4>
  309. <p class="topless"><a href="configparser.html"
  310. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">configparser</span></code> — Configuration file parser</a></p>
  311. </div>
  312. <div>
  313. <h4>Next topic</h4>
  314. <p class="topless"><a href="netrc.html"
  315. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">netrc</span></code> — netrc file processing</a></p>
  316. </div>
  317. <div role="note" aria-label="source link">
  318. <h3>This Page</h3>
  319. <ul class="this-page-menu">
  320. <li><a href="../bugs.html">Report a Bug</a></li>
  321. <li>
  322. <a href="https://github.com/python/cpython/blob/main/Doc/library/tomllib.rst"
  323. rel="nofollow">Show Source
  324. </a>
  325. </li>
  326. </ul>
  327. </div>
  328. </div>
  329. <div id="sidebarbutton" title="Collapse sidebar">
  330. <span>«</span>
  331. </div>
  332. </div>
  333. <div class="clearer"></div>
  334. </div>
  335. <div class="related" role="navigation" aria-label="related navigation">
  336. <h3>Navigation</h3>
  337. <ul>
  338. <li class="right" style="margin-right: 10px">
  339. <a href="../genindex.html" title="General Index"
  340. >index</a></li>
  341. <li class="right" >
  342. <a href="../py-modindex.html" title="Python Module Index"
  343. >modules</a> |</li>
  344. <li class="right" >
  345. <a href="netrc.html" title="netrc — netrc file processing"
  346. >next</a> |</li>
  347. <li class="right" >
  348. <a href="configparser.html" title="configparser — Configuration file parser"
  349. >previous</a> |</li>
  350. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  351. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  352. <li class="switchers">
  353. <div class="language_switcher_placeholder"></div>
  354. <div class="version_switcher_placeholder"></div>
  355. </li>
  356. <li>
  357. </li>
  358. <li id="cpython-language-and-version">
  359. <a href="../index.html">3.12.3 Documentation</a> &#187;
  360. </li>
  361. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  362. <li class="nav-item nav-item-2"><a href="fileformats.html" >File Formats</a> &#187;</li>
  363. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">tomllib</span></code> — Parse TOML files</a></li>
  364. <li class="right">
  365. <div class="inline-search" role="search">
  366. <form class="inline-search" action="../search.html" method="get">
  367. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  368. <input type="submit" value="Go" />
  369. </form>
  370. </div>
  371. |
  372. </li>
  373. <li class="right">
  374. <label class="theme-selector-label">
  375. Theme
  376. <select class="theme-selector" oninput="activateTheme(this.value)">
  377. <option value="auto" selected>Auto</option>
  378. <option value="light">Light</option>
  379. <option value="dark">Dark</option>
  380. </select>
  381. </label> |</li>
  382. </ul>
  383. </div>
  384. <div class="footer">
  385. &copy;
  386. <a href="../copyright.html">
  387. Copyright
  388. </a>
  389. 2001-2024, Python Software Foundation.
  390. <br />
  391. This page is licensed under the Python Software Foundation License Version 2.
  392. <br />
  393. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  394. <br />
  395. See <a href="/license.html">History and License</a> for more information.<br />
  396. <br />
  397. The Python Software Foundation is a non-profit corporation.
  398. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  399. <br />
  400. <br />
  401. Last updated on Apr 09, 2024 (13:47 UTC).
  402. <a href="/bugs.html">Found a bug</a>?
  403. <br />
  404. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
  405. </div>
  406. </body>
  407. </html>
上海开阖软件有限公司 沪ICP备12045867号-1