Skip to content

Commit

Permalink
Deploying to gh-pages from @ 36c3540 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Oct 22, 2023
1 parent c986106 commit 8f7cc73
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 26 deletions.
2 changes: 1 addition & 1 deletion contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -4127,7 +4127,7 @@ <h1>Python 說明文件內容<a class="headerlink" href="#python-documentation-c
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#format-string-syntax">Format String Syntax</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#format-string-syntax">格式化文字語法</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-specification-mini-language">Format Specification Mini-Language</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-examples">Format examples</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion faq/programming.html
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ <h3><a class="toc-backref" href="#id33" role="doc-backlink">如何將數字轉
<p>To convert, e.g., the number <code class="docutils literal notranslate"><span class="pre">144</span></code> to the string <code class="docutils literal notranslate"><span class="pre">'144'</span></code>, use the built-in type
constructor <a class="reference internal" href="../library/stdtypes.html#str" title="str"><code class="xref py py-func docutils literal notranslate"><span class="pre">str()</span></code></a>. If you want a hexadecimal or octal representation, use
the built-in functions <a class="reference internal" href="../library/functions.html#hex" title="hex"><code class="xref py py-func docutils literal notranslate"><span class="pre">hex()</span></code></a> or <a class="reference internal" href="../library/functions.html#oct" title="oct"><code class="xref py py-func docutils literal notranslate"><span class="pre">oct()</span></code></a>. For fancy formatting, see
the <a class="reference internal" href="../reference/lexical_analysis.html#f-strings"><span class="std std-ref">Formatted string literals</span></a> and <a class="reference internal" href="../library/string.html#formatstrings"><span class="std std-ref">Format String Syntax</span></a> sections,
the <a class="reference internal" href="../reference/lexical_analysis.html#f-strings"><span class="std std-ref">Formatted string literals</span></a> and <a class="reference internal" href="../library/string.html#formatstrings"><span class="std std-ref">格式化文字語法</span></a> sections,
e.g. <code class="docutils literal notranslate"><span class="pre">&quot;{:04d}&quot;.format(144)</span></code> yields
<code class="docutils literal notranslate"><span class="pre">'0144'</span></code> and <code class="docutils literal notranslate"><span class="pre">&quot;{:.3f}&quot;.format(1.0/3.0)</span></code> yields <code class="docutils literal notranslate"><span class="pre">'0.333'</span></code>.</p>
</section>
Expand Down
40 changes: 36 additions & 4 deletions genindex-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ <h1 id="index">索引</h1>
| <a href="#"><strong></strong></a>
| <a href="#A"><strong>A</strong></a>
| <a href="#"><strong></strong></a>
| <a href="#A"><strong>A</strong></a>
| <a href="#"><strong></strong></a>
| <a href="#B"><strong>B</strong></a>
| <a href="#"><strong></strong></a>
| <a href="#B"><strong>B</strong></a>
Expand Down Expand Up @@ -308,6 +310,8 @@ <h1 id="index">索引</h1>
| <a href="#P"><strong>P</strong></a>
| <a href="#"><strong></strong></a>
| <a href="#P"><strong>P</strong></a>
| <a href="#"><strong></strong></a>
| <a href="#P"><strong>P</strong></a>
| <a href="#Q"><strong>Q</strong></a>
| <a href="#"><strong></strong></a>
| <a href="#Q"><strong>Q</strong></a>
Expand Down Expand Up @@ -4672,6 +4676,8 @@ <h2 id="A">A</h2>
</li>
<li><a href="library/wsgiref.html#wsgiref.util.application_uri">application_uri() (於 wsgiref.util 模組中)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/2to3.html#to3fixer-apply">apply (2to3 fixer)</a>
</li>
<li><a href="library/multiprocessing.html#multiprocessing.pool.Pool.apply">apply() (multiprocessing.pool.Pool 的方法)</a>
Expand Down Expand Up @@ -4731,6 +4737,12 @@ <h2 id="A">A</h2>
</ul></li>
<li><a href="library/argparse.html#argparse.ArgumentTypeError">ArgumentTypeError</a>
</li>
</ul></td>
</tr></table>

<h2 id=""></h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="glossary.html#term-argument"><strong>argument(引數)</strong></a>

<ul>
Expand All @@ -4743,6 +4755,12 @@ <h2 id="A">A</h2>
<li><a href="faq/programming.html#index-1">與 parameter(參數)的差異</a>
</li>
</ul></li>
</ul></td>
</tr></table>

<h2 id="A">A</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/sys.html#sys.argv">argv (於 sys 模組中)</a>
</li>
<li><a href="c-api/init.html#index-29">argv(sys 模組中)</a>
Expand Down Expand Up @@ -4901,8 +4919,6 @@ <h2 id="A">A</h2>
</li>
<li><a href="library/dialog.html#tkinter.simpledialog.askinteger">askinteger() (於 tkinter.simpledialog 模組中)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/tkinter.messagebox.html#tkinter.messagebox.askokcancel">askokcancel() (於 tkinter.messagebox 模組中)</a>
</li>
<li><a href="library/dialog.html#tkinter.filedialog.askopenfile">askopenfile() (於 tkinter.filedialog 模組中)</a>
Expand Down Expand Up @@ -4962,6 +4978,8 @@ <h2 id="A">A</h2>
</li>
<li><a href="library/typing.html#typing.assert_never">assert_never() (於 typing 模組中)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/unittest.mock.html#unittest.mock.AsyncMock.assert_not_awaited">assert_not_awaited() (unittest.mock.AsyncMock 的方法)</a>
</li>
<li><a href="library/unittest.mock.html#unittest.mock.Mock.assert_not_called">assert_not_called() (unittest.mock.Mock 的方法)</a>
Expand Down Expand Up @@ -23313,6 +23331,8 @@ <h2 id="P">P</h2>
</ul></li>
<li><a href="library/pydoc.html#index-1">PAGER</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/curses.html#curses.pair_content">pair_content() (於 curses 模組中)</a>
</li>
<li><a href="library/curses.html#curses.pair_number">pair_number() (於 curses 模組中)</a>
Expand All @@ -23327,6 +23347,12 @@ <h2 id="P">P</h2>
</li>
<li><a href="library/inspect.html#inspect.Signature.parameters">parameters (inspect.Signature 的屬性)</a>
</li>
</ul></td>
</tr></table>

<h2 id=""></h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="glossary.html#term-parameter"><strong>parameter(參數)</strong></a>

<ul>
Expand All @@ -23339,6 +23365,12 @@ <h2 id="P">P</h2>
<li><a href="faq/programming.html#index-1">與 argument(引數)的差異</a>
</li>
</ul></li>
</ul></td>
</tr></table>

<h2 id="P">P</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/email.headerregistry.html#email.headerregistry.ParameterizedMIMEHeader.params">params (email.headerregistry.ParameterizedMIMEHeader 的屬性)</a>
</li>
<li><a href="library/ast.html#ast.ParamSpec">ParamSpec (ast 中的類別)</a>
Expand Down Expand Up @@ -23433,8 +23465,6 @@ <h2 id="P">P</h2>
</li>
<li><a href="library/cgi.html#cgi.parse_header">parse_header() (於 cgi 模組中)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/http.client.html#http.client.parse_headers">parse_headers() (於 http.client 模組中)</a>
</li>
<li><a href="library/argparse.html#argparse.ArgumentParser.parse_intermixed_args">parse_intermixed_args() (argparse.ArgumentParser 的方法)</a>
Expand All @@ -23455,6 +23485,8 @@ <h2 id="P">P</h2>
</li>
<li><a href="library/email.utils.html#email.utils.parsedate">parsedate() (於 email.utils 模組中)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="library/email.utils.html#email.utils.parsedate_to_datetime">parsedate_to_datetime() (於 email.utils 模組中)</a>
</li>
<li><a href="library/email.utils.html#email.utils.parsedate_tz">parsedate_tz() (於 email.utils 模組中)</a>
Expand Down
4 changes: 4 additions & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ <h1 id="index">索引</h1>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-A.html"><strong>A</strong></a>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-A.html"><strong>A</strong></a>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-B.html"><strong>B</strong></a>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-B.html"><strong>B</strong></a>
Expand Down Expand Up @@ -310,6 +312,8 @@ <h1 id="index">索引</h1>
| <a href="genindex-P.html"><strong>P</strong></a>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-P.html"><strong>P</strong></a>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-P.html"><strong>P</strong></a>
| <a href="genindex-Q.html"><strong>Q</strong></a>
| <a href="genindex-.html"><strong></strong></a>
| <a href="genindex-Q.html"><strong>Q</strong></a>
Expand Down
6 changes: 3 additions & 3 deletions library/stdtypes.html
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ <h3>Additional Methods on Float<a class="headerlink" href="#additional-methods-o
</div>
<p>For more information on the <code class="docutils literal notranslate"><span class="pre">str</span></code> class and its methods, see
<a class="reference internal" href="#textseq"><span class="std std-ref">Text Sequence Type --- str</span></a> and the <a class="reference internal" href="#string-methods"><span class="std std-ref">String Methods</span></a> section below. To output
formatted strings, see the <a class="reference internal" href="../reference/lexical_analysis.html#f-strings"><span class="std std-ref">Formatted string literals</span></a> and <a class="reference internal" href="string.html#formatstrings"><span class="std std-ref">Format String Syntax</span></a>
formatted strings, see the <a class="reference internal" href="../reference/lexical_analysis.html#f-strings"><span class="std std-ref">Formatted string literals</span></a> and <a class="reference internal" href="string.html#formatstrings"><span class="std std-ref">格式化文字語法</span></a>
sections. In addition, see the <a class="reference internal" href="text.html#stringservices"><span class="std std-ref">文本處理 (Text Processing) 服務</span></a> section.</p>
</dd></dl>

Expand All @@ -1917,7 +1917,7 @@ <h3>Additional Methods on Float<a class="headerlink" href="#additional-methods-o
operations, along with the additional methods described below.</p>
<p>Strings also support two styles of string formatting, one providing a large
degree of flexibility and customization (see <a class="reference internal" href="#str.format" title="str.format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">str.format()</span></code></a>,
<a class="reference internal" href="string.html#formatstrings"><span class="std std-ref">Format String Syntax</span></a> and <a class="reference internal" href="string.html#string-formatting"><span class="std std-ref">Custom String Formatting</span></a>) and the other based on C
<a class="reference internal" href="string.html#formatstrings"><span class="std std-ref">格式化文字語法</span></a> and <a class="reference internal" href="string.html#string-formatting"><span class="std std-ref">Custom String Formatting</span></a>) and the other based on C
<code class="docutils literal notranslate"><span class="pre">printf</span></code> style formatting that handles a narrower range of types and is
slightly harder to use correctly, but is often faster for the cases it can
handle (<a class="reference internal" href="#old-string-formatting"><span class="std std-ref">printf-style String Formatting</span></a>).</p>
Expand Down Expand Up @@ -2059,7 +2059,7 @@ <h3>Additional Methods on Float<a class="headerlink" href="#additional-methods-o
<span class="go">&#39;The sum of 1 + 2 is 3&#39;</span>
</pre></div>
</div>
<p>See <a class="reference internal" href="string.html#formatstrings"><span class="std std-ref">Format String Syntax</span></a> for a description of the various formatting options
<p>See <a class="reference internal" href="string.html#formatstrings"><span class="std std-ref">格式化文字語法</span></a> for a description of the various formatting options
that can be specified in format strings.</p>
<div class="admonition note">
<p class="admonition-title">備註</p>
Expand Down
18 changes: 7 additions & 11 deletions library/string.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h3><a href="../contents.html">目錄</a></h3>
</li>
</ul>
</li>
<li><a class="reference internal" href="#format-string-syntax">Format String Syntax</a><ul>
<li><a class="reference internal" href="#format-string-syntax">格式化文字語法</a><ul>
<li><a class="reference internal" href="#format-specification-mini-language">Format Specification Mini-Language</a></li>
<li><a class="reference internal" href="#format-examples">Format examples</a></li>
</ul>
Expand Down Expand Up @@ -235,7 +235,7 @@ <h3>瀏覽</h3>
</div>
<section id="string-constants">
<h2>String constants<a class="headerlink" href="#string-constants" title="Link to this heading"></a></h2>
<p>The constants defined in this module are:</p>
<p>此模組中定義的常數為:</p>
<dl class="py data">
<dt class="sig sig-object py" id="string.ascii_letters">
<span class="sig-prename descclassname"><span class="pre">string.</span></span><span class="sig-name descname"><span class="pre">ascii_letters</span></span><a class="headerlink" href="#string.ascii_letters" title="Link to this definition"></a></dt>
Expand Down Expand Up @@ -414,7 +414,7 @@ <h2>String constants<a class="headerlink" href="#string-constants" title="Link t

</section>
<section id="format-string-syntax">
<span id="formatstrings"></span><h2>Format String Syntax<a class="headerlink" href="#format-string-syntax" title="Link to this heading"></a></h2>
<span id="formatstrings"></span><h2>格式化文字語法<a class="headerlink" href="#format-string-syntax" title="Link to this heading"></a></h2>
<p>The <a class="reference internal" href="stdtypes.html#str.format" title="str.format"><code class="xref py py-meth docutils literal notranslate"><span class="pre">str.format()</span></code></a> method and the <a class="reference internal" href="#string.Formatter" title="string.Formatter"><code class="xref py py-class docutils literal notranslate"><span class="pre">Formatter</span></code></a> class share the same
syntax for format strings (although in the case of <a class="reference internal" href="#string.Formatter" title="string.Formatter"><code class="xref py py-class docutils literal notranslate"><span class="pre">Formatter</span></code></a>,
subclasses can define their own format string syntax). The syntax is
Expand Down Expand Up @@ -503,7 +503,7 @@ <h2>String constants<a class="headerlink" href="#string-constants" title="Link t
<span id="formatspec"></span><h3>Format Specification Mini-Language<a class="headerlink" href="#format-specification-mini-language" title="Link to this heading"></a></h3>
<p>&quot;Format specifications&quot; are used within replacement fields contained within a
format string to define how individual values are presented (see
<a class="reference internal" href="#formatstrings"><span class="std std-ref">Format String Syntax</span></a> and <a class="reference internal" href="../reference/lexical_analysis.html#f-strings"><span class="std std-ref">Formatted string literals</span></a>).
<a class="reference internal" href="#formatstrings"><span class="std std-ref">格式化文字語法</span></a> and <a class="reference internal" href="../reference/lexical_analysis.html#f-strings"><span class="std std-ref">Formatted string literals</span></a>).
They can also be passed directly to the built-in
<a class="reference internal" href="functions.html#format" title="format"><code class="xref py py-func docutils literal notranslate"><span class="pre">format()</span></code></a> function. Each formattable type may define how the format
specification is to be interpreted.</p>
Expand Down Expand Up @@ -676,14 +676,10 @@ <h2>String constants<a class="headerlink" href="#string-constants" title="Link t
<td><p>Octal format. Outputs the number in base 8.</p></td>
</tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">'x'</span></code></p></td>
<td><p>Hex format. Outputs the number in base 16, using
lower-case letters for the digits above 9.</p></td>
<td><p>十六進位格式。輸出以 16 為基數的數字,9 以上的數字使用小寫字母。</p></td>
</tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">'X'</span></code></p></td>
<td><p>Hex format. Outputs the number in base 16, using
upper-case letters for the digits above 9.
In case <code class="docutils literal notranslate"><span class="pre">'#'</span></code> is specified, the prefix <code class="docutils literal notranslate"><span class="pre">'0x'</span></code> will
be upper-cased to <code class="docutils literal notranslate"><span class="pre">'0X'</span></code> as well.</p></td>
<td><p>十六進位格式。輸出以 16 為基數的數字,9 以上的數字使用大寫字母。如果指定了``'#'<code class="docutils literal notranslate"><span class="pre">,則前綴</span> <span class="pre">``'0x'</span></code> 也會被轉成大寫的 <code class="docutils literal notranslate"><span class="pre">'0X'</span></code></p></td>
</tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">'n'</span></code></p></td>
<td><p>Number. This is the same as <code class="docutils literal notranslate"><span class="pre">'d'</span></code>, except that it uses
Expand Down Expand Up @@ -1160,7 +1156,7 @@ <h3><a href="../contents.html">目錄</a></h3>
</li>
</ul>
</li>
<li><a class="reference internal" href="#format-string-syntax">Format String Syntax</a><ul>
<li><a class="reference internal" href="#format-string-syntax">格式化文字語法</a><ul>
<li><a class="reference internal" href="#format-specification-mini-language">Format Specification Mini-Language</a></li>
<li><a class="reference internal" href="#format-examples">Format examples</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion library/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ <h3>瀏覽</h3>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="string.html#format-string-syntax">Format String Syntax</a><ul>
<li class="toctree-l2"><a class="reference internal" href="string.html#format-string-syntax">格式化文字語法</a><ul>
<li class="toctree-l3"><a class="reference internal" href="string.html#format-specification-mini-language">Format Specification Mini-Language</a></li>
<li class="toctree-l3"><a class="reference internal" href="string.html#format-examples">Format examples</a></li>
</ul>
Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

Loading

0 comments on commit 8f7cc73

Please sign in to comment.