Skip to content

Commit 79d86dc

Browse files
committed
Deploying to gh-pages from @ ff93069 🚀
1 parent 0d28591 commit 79d86dc

File tree

13 files changed

+23
-54
lines changed

13 files changed

+23
-54
lines changed

contents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4128,7 +4128,7 @@ <h1>Python 說明文件內容<a class="headerlink" href="#python-documentation-c
41284128
</ul>
41294129
</li>
41304130
<li class="toctree-l4"><a class="reference internal" href="library/string.html#format-string-syntax">格式化文字語法</a><ul>
4131-
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-specification-mini-language">格式規格 (Format Specification) 迷你語言</a></li>
4131+
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-specification-mini-language">Format Specification Mini-Language</a></li>
41324132
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-examples">Format examples</a></li>
41334133
</ul>
41344134
</li>

genindex-all.html

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ <h1 id="index">索引</h1>
153153
| <a href="#"><strong></strong></a>
154154
| <a href="#A"><strong>A</strong></a>
155155
| <a href="#"><strong></strong></a>
156-
| <a href="#A"><strong>A</strong></a>
157-
| <a href="#"><strong></strong></a>
158156
| <a href="#B"><strong>B</strong></a>
159157
| <a href="#"><strong></strong></a>
160158
| <a href="#B"><strong>B</strong></a>
@@ -310,8 +308,6 @@ <h1 id="index">索引</h1>
310308
| <a href="#P"><strong>P</strong></a>
311309
| <a href="#"><strong></strong></a>
312310
| <a href="#P"><strong>P</strong></a>
313-
| <a href="#"><strong></strong></a>
314-
| <a href="#P"><strong>P</strong></a>
315311
| <a href="#Q"><strong>Q</strong></a>
316312
| <a href="#"><strong></strong></a>
317313
| <a href="#Q"><strong>Q</strong></a>
@@ -4676,8 +4672,6 @@ <h2 id="A">A</h2>
46764672
</li>
46774673
<li><a href="library/wsgiref.html#wsgiref.util.application_uri">application_uri() (於 wsgiref.util 模組中)</a>
46784674
</li>
4679-
</ul></td>
4680-
<td style="width: 33%; vertical-align: top;"><ul>
46814675
<li><a href="library/2to3.html#to3fixer-apply">apply (2to3 fixer)</a>
46824676
</li>
46834677
<li><a href="library/multiprocessing.html#multiprocessing.pool.Pool.apply">apply() (multiprocessing.pool.Pool 的方法)</a>
@@ -4737,12 +4731,6 @@ <h2 id="A">A</h2>
47374731
</ul></li>
47384732
<li><a href="library/argparse.html#argparse.ArgumentTypeError">ArgumentTypeError</a>
47394733
</li>
4740-
</ul></td>
4741-
</tr></table>
4742-
4743-
<h2 id=""></h2>
4744-
<table style="width: 100%" class="indextable genindextable"><tr>
4745-
<td style="width: 33%; vertical-align: top;"><ul>
47464734
<li><a href="glossary.html#term-argument"><strong>argument(引數)</strong></a>
47474735

47484736
<ul>
@@ -4755,12 +4743,6 @@ <h2 id=""></h2>
47554743
<li><a href="faq/programming.html#index-1">與 parameter(參數)的差異</a>
47564744
</li>
47574745
</ul></li>
4758-
</ul></td>
4759-
</tr></table>
4760-
4761-
<h2 id="A">A</h2>
4762-
<table style="width: 100%" class="indextable genindextable"><tr>
4763-
<td style="width: 33%; vertical-align: top;"><ul>
47644746
<li><a href="library/sys.html#sys.argv">argv (於 sys 模組中)</a>
47654747
</li>
47664748
<li><a href="c-api/init.html#index-29">argv(sys 模組中)</a>
@@ -4919,6 +4901,8 @@ <h2 id="A">A</h2>
49194901
</li>
49204902
<li><a href="library/dialog.html#tkinter.simpledialog.askinteger">askinteger() (於 tkinter.simpledialog 模組中)</a>
49214903
</li>
4904+
</ul></td>
4905+
<td style="width: 33%; vertical-align: top;"><ul>
49224906
<li><a href="library/tkinter.messagebox.html#tkinter.messagebox.askokcancel">askokcancel() (於 tkinter.messagebox 模組中)</a>
49234907
</li>
49244908
<li><a href="library/dialog.html#tkinter.filedialog.askopenfile">askopenfile() (於 tkinter.filedialog 模組中)</a>
@@ -4978,8 +4962,6 @@ <h2 id="A">A</h2>
49784962
</li>
49794963
<li><a href="library/typing.html#typing.assert_never">assert_never() (於 typing 模組中)</a>
49804964
</li>
4981-
</ul></td>
4982-
<td style="width: 33%; vertical-align: top;"><ul>
49834965
<li><a href="library/unittest.mock.html#unittest.mock.AsyncMock.assert_not_awaited">assert_not_awaited() (unittest.mock.AsyncMock 的方法)</a>
49844966
</li>
49854967
<li><a href="library/unittest.mock.html#unittest.mock.Mock.assert_not_called">assert_not_called() (unittest.mock.Mock 的方法)</a>
@@ -23331,8 +23313,6 @@ <h2 id="P">P</h2>
2333123313
</ul></li>
2333223314
<li><a href="library/pydoc.html#index-1">PAGER</a>
2333323315
</li>
23334-
</ul></td>
23335-
<td style="width: 33%; vertical-align: top;"><ul>
2333623316
<li><a href="library/curses.html#curses.pair_content">pair_content() (於 curses 模組中)</a>
2333723317
</li>
2333823318
<li><a href="library/curses.html#curses.pair_number">pair_number() (於 curses 模組中)</a>
@@ -23347,12 +23327,6 @@ <h2 id="P">P</h2>
2334723327
</li>
2334823328
<li><a href="library/inspect.html#inspect.Signature.parameters">parameters (inspect.Signature 的屬性)</a>
2334923329
</li>
23350-
</ul></td>
23351-
</tr></table>
23352-
23353-
<h2 id=""></h2>
23354-
<table style="width: 100%" class="indextable genindextable"><tr>
23355-
<td style="width: 33%; vertical-align: top;"><ul>
2335623330
<li><a href="glossary.html#term-parameter"><strong>parameter(參數)</strong></a>
2335723331

2335823332
<ul>
@@ -23365,12 +23339,6 @@ <h2 id=""></h2>
2336523339
<li><a href="faq/programming.html#index-1">與 argument(引數)的差異</a>
2336623340
</li>
2336723341
</ul></li>
23368-
</ul></td>
23369-
</tr></table>
23370-
23371-
<h2 id="P">P</h2>
23372-
<table style="width: 100%" class="indextable genindextable"><tr>
23373-
<td style="width: 33%; vertical-align: top;"><ul>
2337423342
<li><a href="library/email.headerregistry.html#email.headerregistry.ParameterizedMIMEHeader.params">params (email.headerregistry.ParameterizedMIMEHeader 的屬性)</a>
2337523343
</li>
2337623344
<li><a href="library/ast.html#ast.ParamSpec">ParamSpec (ast 中的類別)</a>
@@ -23465,6 +23433,8 @@ <h2 id="P">P</h2>
2346523433
</li>
2346623434
<li><a href="library/cgi.html#cgi.parse_header">parse_header() (於 cgi 模組中)</a>
2346723435
</li>
23436+
</ul></td>
23437+
<td style="width: 33%; vertical-align: top;"><ul>
2346823438
<li><a href="library/http.client.html#http.client.parse_headers">parse_headers() (於 http.client 模組中)</a>
2346923439
</li>
2347023440
<li><a href="library/argparse.html#argparse.ArgumentParser.parse_intermixed_args">parse_intermixed_args() (argparse.ArgumentParser 的方法)</a>
@@ -23485,8 +23455,6 @@ <h2 id="P">P</h2>
2348523455
</li>
2348623456
<li><a href="library/email.utils.html#email.utils.parsedate">parsedate() (於 email.utils 模組中)</a>
2348723457
</li>
23488-
</ul></td>
23489-
<td style="width: 33%; vertical-align: top;"><ul>
2349023458
<li><a href="library/email.utils.html#email.utils.parsedate_to_datetime">parsedate_to_datetime() (於 email.utils 模組中)</a>
2349123459
</li>
2349223460
<li><a href="library/email.utils.html#email.utils.parsedate_tz">parsedate_tz() (於 email.utils 模組中)</a>

genindex.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ <h1 id="index">索引</h1>
155155
| <a href="genindex-.html"><strong></strong></a>
156156
| <a href="genindex-A.html"><strong>A</strong></a>
157157
| <a href="genindex-.html"><strong></strong></a>
158-
| <a href="genindex-A.html"><strong>A</strong></a>
159-
| <a href="genindex-.html"><strong></strong></a>
160158
| <a href="genindex-B.html"><strong>B</strong></a>
161159
| <a href="genindex-.html"><strong></strong></a>
162160
| <a href="genindex-B.html"><strong>B</strong></a>
@@ -312,8 +310,6 @@ <h1 id="index">索引</h1>
312310
| <a href="genindex-P.html"><strong>P</strong></a>
313311
| <a href="genindex-.html"><strong></strong></a>
314312
| <a href="genindex-P.html"><strong>P</strong></a>
315-
| <a href="genindex-.html"><strong></strong></a>
316-
| <a href="genindex-P.html"><strong>P</strong></a>
317313
| <a href="genindex-Q.html"><strong>Q</strong></a>
318314
| <a href="genindex-.html"><strong></strong></a>
319315
| <a href="genindex-Q.html"><strong>Q</strong></a>

library/fractions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ <h3>瀏覽</h3>
412412
presentation types <code class="docutils literal notranslate"><span class="pre">&quot;e&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;E&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;f&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;F&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;g&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;G&quot;</span></code>
413413
and <code class="docutils literal notranslate"><span class="pre">&quot;%&quot;</span></code> are supported. For these presentation types, formatting for a
414414
<a class="reference internal" href="#fractions.Fraction" title="fractions.Fraction"><code class="xref py py-class docutils literal notranslate"><span class="pre">Fraction</span></code></a> object <code class="docutils literal notranslate"><span class="pre">x</span></code> follows the rules outlined for
415-
the <a class="reference internal" href="functions.html#float" title="float"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></a> type in the <a class="reference internal" href="string.html#formatspec"><span class="std std-ref">格式規格 (Format Specification) 迷你語言</span></a> section.</p>
415+
the <a class="reference internal" href="functions.html#float" title="float"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></a> type in the <a class="reference internal" href="string.html#formatspec"><span class="std std-ref">Format Specification Mini-Language</span></a> section.</p>
416416
<p>Here are some examples:</p>
417417
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">fractions</span> <span class="kn">import</span> <span class="n">Fraction</span>
418418
<span class="gp">&gt;&gt;&gt; </span><span class="nb">format</span><span class="p">(</span><span class="n">Fraction</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">7</span><span class="p">),</span> <span class="s1">&#39;.40g&#39;</span><span class="p">)</span>

library/functions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ <h3>瀏覽</h3>
814814
<dl class="py function" id="index-4">
815815
<dt class="sig sig-object py" id="format">
816816
<span class="sig-name descname"><span class="pre">format</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">value</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">format_spec</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">''</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#format" title="Link to this definition"></a></dt>
817-
<dd><p><em>value</em> 轉換為 <em>format_spec</em> 控制的 &quot;格式化&quot; 表示。<em>format_spec</em> 的解釋取決於 <em>value</em> 引數的型別,但是大多數內建型別使用標準格式化語法:<a class="reference internal" href="string.html#formatspec"><span class="std std-ref">格式規格 (Format Specification) 迷你語言</span></a></p>
817+
<dd><p><em>value</em> 轉換為 <em>format_spec</em> 控制的 &quot;格式化&quot; 表示。<em>format_spec</em> 的解釋取決於 <em>value</em> 引數的型別,但是大多數內建型別使用標準格式化語法:<a class="reference internal" href="string.html#formatspec"><span class="std std-ref">Format Specification Mini-Language</span></a></p>
818818
<p>預設的 <em>format_spec</em> 是一個空字串,它通常和呼叫 <a class="reference internal" href="stdtypes.html#str" title="str"><code class="xref py py-func docutils literal notranslate"><span class="pre">str(value)</span></code></a> 的效果相同。</p>
819819
<p>呼叫 <code class="docutils literal notranslate"><span class="pre">format(value,</span> <span class="pre">format_spec)</span></code> 會轉換成 <code class="docutils literal notranslate"><span class="pre">type(value).__format__(value,</span> <span class="pre">format_spec)</span></code>,當搜尋 value 的 <code class="xref py py-meth docutils literal notranslate"><span class="pre">__format__()</span></code> method 時,會忽略實例中的字典。如果搜尋到 <a class="reference internal" href="#object" title="object"><code class="xref py py-mod docutils literal notranslate"><span class="pre">object</span></code></a> 這個 method 但 <em>format_spec</em> 不為空,或是 <em>format_spec</em> 或回傳值不是字串,則會觸發 <a class="reference internal" href="exceptions.html#TypeError" title="TypeError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">TypeError</span></code></a></p>
820820
<div class="versionchanged">

library/stdtypes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6007,7 +6007,7 @@ <h3>Affected APIs<a class="headerlink" href="#affected-apis" title="Link to this
60076007
<li><p><code class="docutils literal notranslate"><span class="pre">int(string,</span> <span class="pre">base)</span></code> with base 2, 4, 8, 16, or 32.</p></li>
60086008
<li><p><a class="reference internal" href="#int.from_bytes" title="int.from_bytes"><code class="xref py py-func docutils literal notranslate"><span class="pre">int.from_bytes()</span></code></a> and <a class="reference internal" href="#int.to_bytes" title="int.to_bytes"><code class="xref py py-func docutils literal notranslate"><span class="pre">int.to_bytes()</span></code></a>.</p></li>
60096009
<li><p><a class="reference internal" href="functions.html#hex" title="hex"><code class="xref py py-func docutils literal notranslate"><span class="pre">hex()</span></code></a>, <a class="reference internal" href="functions.html#oct" title="oct"><code class="xref py py-func docutils literal notranslate"><span class="pre">oct()</span></code></a>, <a class="reference internal" href="functions.html#bin" title="bin"><code class="xref py py-func docutils literal notranslate"><span class="pre">bin()</span></code></a>.</p></li>
6010-
<li><p><a class="reference internal" href="string.html#formatspec"><span class="std std-ref">格式規格 (Format Specification) 迷你語言</span></a> for hex, octal, and binary numbers.</p></li>
6010+
<li><p><a class="reference internal" href="string.html#formatspec"><span class="std std-ref">Format Specification Mini-Language</span></a> for hex, octal, and binary numbers.</p></li>
60116011
<li><p><a class="reference internal" href="#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> to <a class="reference internal" href="functions.html#float" title="float"><code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></a>.</p></li>
60126012
<li><p><a class="reference internal" href="#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> to <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>.</p></li>
60136013
</ul>

library/string.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h3><a href="../contents.html">目錄</a></h3>
113113
</ul>
114114
</li>
115115
<li><a class="reference internal" href="#format-string-syntax">格式化文字語法</a><ul>
116-
<li><a class="reference internal" href="#format-specification-mini-language">格式規格 (Format Specification) 迷你語言</a></li>
116+
<li><a class="reference internal" href="#format-specification-mini-language">Format Specification Mini-Language</a></li>
117117
<li><a class="reference internal" href="#format-examples">Format examples</a></li>
118118
</ul>
119119
</li>
@@ -440,7 +440,7 @@ <h2>String constants<a class="headerlink" href="#string-constants" title="Link t
440440
The <em>field_name</em> is optionally followed by a <em>conversion</em> field, which is
441441
preceded by an exclamation point <code class="docutils literal notranslate"><span class="pre">'!'</span></code>, and a <em>format_spec</em>, which is preceded
442442
by a colon <code class="docutils literal notranslate"><span class="pre">':'</span></code>. These specify a non-default format for the replacement value.</p>
443-
<p>另請參閱 <a class="reference internal" href="#formatspec"><span class="std std-ref">格式規格 (Format Specification) 迷你語言</span></a> 部份。</p>
443+
<p>另請參閱 <a class="reference internal" href="#formatspec"><span class="std std-ref">Format Specification Mini-Language</span></a> 部份。</p>
444444
<p>The <em>field_name</em> itself begins with an <em>arg_name</em> that is either a number or a
445445
keyword. If it's a number, it refers to a positional argument, and if it's a keyword,
446446
it refers to a named keyword argument. An <em>arg_name</em> is treated as a number if
@@ -499,8 +499,13 @@ <h2>String constants<a class="headerlink" href="#string-constants" title="Link t
499499
This allows the formatting of a value to be dynamically specified.</p>
500500
<p>範例請見 <a class="reference internal" href="#formatexamples"><span class="std std-ref">Format examples</span></a></p>
501501
<section id="format-specification-mini-language">
502-
<span id="formatspec"></span><h3>格式規格 (Format Specification) 迷你語言<a class="headerlink" href="#format-specification-mini-language" title="Link to this heading"></a></h3>
503-
<p>“格式規格” 在格式字串 (format string) 中包含的替換欄位中使用,以定義各個值如何被呈現(請參考 <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> )。它們也能夠直接傳遞給內建的 <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> 函式。每個可格式化型別 (formattable type) 可以定義格式規格如何被直譯。</p>
502+
<span id="formatspec"></span><h3>Format Specification Mini-Language<a class="headerlink" href="#format-specification-mini-language" title="Link to this heading"></a></h3>
503+
<p>&quot;Format specifications&quot; are used within replacement fields contained within a
504+
format string to define how individual values are presented (see
505+
<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>).
506+
They can also be passed directly to the built-in
507+
<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
508+
specification is to be interpreted.</p>
504509
<p>Most built-in types implement the following options for format specifications,
505510
although some of the formatting options are only supported by the numeric types.</p>
506511
<p>A general convention is that an empty format specification produces
@@ -1150,7 +1155,7 @@ <h3><a href="../contents.html">目錄</a></h3>
11501155
</ul>
11511156
</li>
11521157
<li><a class="reference internal" href="#format-string-syntax">格式化文字語法</a><ul>
1153-
<li><a class="reference internal" href="#format-specification-mini-language">格式規格 (Format Specification) 迷你語言</a></li>
1158+
<li><a class="reference internal" href="#format-specification-mini-language">Format Specification Mini-Language</a></li>
11541159
<li><a class="reference internal" href="#format-examples">Format examples</a></li>
11551160
</ul>
11561161
</li>

library/text.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ <h3>瀏覽</h3>
202202
</ul>
203203
</li>
204204
<li class="toctree-l2"><a class="reference internal" href="string.html#format-string-syntax">格式化文字語法</a><ul>
205-
<li class="toctree-l3"><a class="reference internal" href="string.html#format-specification-mini-language">格式規格 (Format Specification) 迷你語言</a></li>
205+
<li class="toctree-l3"><a class="reference internal" href="string.html#format-specification-mini-language">Format Specification Mini-Language</a></li>
206206
<li class="toctree-l3"><a class="reference internal" href="string.html#format-examples">Format examples</a></li>
207207
</ul>
208208
</li>

objects.inv

-10 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)