René's URL Explorer Experiment


Title: 2. 詞法分析 — Python 3.14.0 說明文件

direct link

Domain: python.github.io

readthedocs-addons-api-version1

Links:

https://www.python.org/
目錄https://python.github.io/python-docs-zh-tw/contents.html
2. 詞法分析https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html
2.1. Line structurehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#line-structure
2.1.1. Logical lineshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#logical-lines
2.1.2. Physical lineshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#physical-lines
2.1.3. Commentshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#comments
2.1.4. Encoding declarationshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#encoding-declarations
2.1.5. Explicit line joininghttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#explicit-line-joining
2.1.6. Implicit line joininghttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#implicit-line-joining
2.1.7. Blank lineshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#blank-lines
2.1.8. Indentationhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#indentation
2.1.9. Whitespace between tokenshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#whitespace-between-tokens
2.1.10. End markerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#end-marker
2.2. Other tokenshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#other-tokens
2.3. Names (identifiers and keywords)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#names-identifiers-and-keywords
2.3.1. 關鍵字https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#keywords
2.3.2. 軟關鍵字https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#soft-keywords
2.3.3. Reserved classes of identifiershttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#reserved-classes-of-identifiers
2.4. Literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#literals
2.5. String and Bytes literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-and-bytes-literals
2.5.1. 三引號字串https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#triple-quoted-strings
2.5.2. String prefixeshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-prefixes
2.5.3. Formal grammarhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#formal-grammar
2.5.4. 跳脫序列https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escape-sequences
2.5.4.1. Ignored end of linehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#ignored-end-of-line
2.5.4.2. 跳脫字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escaped-characters
2.5.4.3. 八進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#octal-character
2.5.4.4. 十六進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#hexadecimal-character
2.5.4.5. Named Unicode characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#named-unicode-character
2.5.4.6. 十六進位 Unicode 字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#hexadecimal-unicode-characters
2.5.4.7. 無法辨識的跳脫序列https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#unrecognized-escape-sequences
2.5.5. 位元組常數https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#bytes-literals
2.5.6. 原始字串常數https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#raw-string-literals
2.5.7. f-string(f 字串)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#formatted-string-literals
2.5.8. t-string(t 字串)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#template-string-literals
2.6. Numeric literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numeric-literals
2.6.1. Integer literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#integer-literals
2.6.2. 浮點數常數 (Floating-point literals)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#floating-point-literals
2.6.3. Imaginary literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#imaginary-literals
2.7. Operators and delimitershttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#operators-and-delimiters
1. 簡介https://python.github.io/python-docs-zh-tw/reference/introduction.html
3. 資料模型https://python.github.io/python-docs-zh-tw/reference/datamodel.html
回報錯誤https://python.github.io/python-docs-zh-tw/bugs.html
顯示原始碼 https://github.com/python/cpython/blob/main/Doc/reference/lexical_analysis.rst?plain=1
索引https://python.github.io/python-docs-zh-tw/genindex.html
模組https://python.github.io/python-docs-zh-tw/py-modindex.html
下一頁https://python.github.io/python-docs-zh-tw/reference/datamodel.html
上一頁https://python.github.io/python-docs-zh-tw/reference/introduction.html
Pythonhttps://www.python.org/
3.14.0 Documentationhttps://python.github.io/python-docs-zh-tw/index.html
Python 語言參考手冊https://python.github.io/python-docs-zh-tw/reference/index.html
2. 詞法分析https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#lexical-analysis
tokenshttps://python.github.io/python-docs-zh-tw/glossary.html#term-token
encodinghttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#encodings
source charactershttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#lexical-source-character
SyntaxErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#SyntaxError
Whitespacehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#whitespace
New linehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#line-structure
Indentationhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#indentation
Explicit line joininghttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#explicit-joining
string escape sequenceshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escape-sequences
Commenthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#comments
String literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#strings
Namehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#identifiers
string or bytes literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#strings
Namehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#identifiers
numeric literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numbers
Numeric literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numbers
Numeric literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numbers
Operatorhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#operators
Operator or delimiterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#operators
End markerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#endmarker-token
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#line-structure
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#logical-lines
NEWLINEhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NEWLINE
explicithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#explicit-joining
implicithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#implicit-joining
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#physical-lines
Classic Mac OShttps://en.wikipedia.org/wiki/Classic_Mac_OS
string literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#strings
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#comments
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#encoding-declarations
標準編碼https://python.github.io/python-docs-zh-tw/library/codecs.html#standard-encodings
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#explicit-line-joining
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#implicit-line-joining
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#blank-lines
NEWLINEhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NEWLINE
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#indentation
TabErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#TabError
INDENThttps://python.github.io/python-docs-zh-tw/library/token.html#token.INDENT
DEDENThttps://python.github.io/python-docs-zh-tw/library/token.html#token.DEDENT
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#whitespace-between-tokens
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#end-marker
ENDMARKERhttps://python.github.io/python-docs-zh-tw/library/token.html#token.ENDMARKER
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#other-tokens
NEWLINEhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NEWLINE
INDENThttps://python.github.io/python-docs-zh-tw/library/token.html#token.INDENT
DEDENThttps://python.github.io/python-docs-zh-tw/library/token.html#token.DEDENT
NAMEhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NAME
NUMBERhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NUMBER
STRINGhttps://python.github.io/python-docs-zh-tw/library/token.html#token.STRING
OPhttps://python.github.io/python-docs-zh-tw/library/token.html#token.OP
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#names-identifiers-and-keywords
NAMEhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NAME
normalization formhttps://www.unicode.org/reports/tr15/#Norm_Forms
PropList.txthttps://www.unicode.org/Public/16.0.0/ucd/PropList.txt
PropList.txthttps://www.unicode.org/Public/16.0.0/ucd/PropList.txt
unicodedatahttps://python.github.io/python-docs-zh-tw/library/unicodedata.html#module-unicodedata
UAX-31https://www.unicode.org/reports/tr31/
PEP 3131https://peps.python.org/pep-3131/
xid_starthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-xid_start
xid_continuehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-xid_continue
id_starthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-id_start
id_starthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-id_start
id_starthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-id_start
xid_continuehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-xid_continue
id_continuehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-id_continue
id_continuehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-id_continue
NAMEhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-NAME
DerivedCoreProperties.txthttps://www.unicode.org/Public/16.0.0/ucd/DerivedCoreProperties.txt
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#keywords
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#soft-keywords
matchhttps://python.github.io/python-docs-zh-tw/reference/compound_stmts.html#match
typehttps://python.github.io/python-docs-zh-tw/reference/simple_stmts.html#type
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#reserved-classes-of-identifiers
matchhttps://python.github.io/python-docs-zh-tw/reference/compound_stmts.html#match
soft keywordhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#soft-keywords
wildcardhttps://python.github.io/python-docs-zh-tw/reference/compound_stmts.html#wildcard-patterns
builtinshttps://python.github.io/python-docs-zh-tw/library/builtins.html#module-builtins
gettexthttps://python.github.io/python-docs-zh-tw/library/gettext.html#module-gettext
Special method nameshttps://python.github.io/python-docs-zh-tw/reference/datamodel.html#specialnames
Identifiers (Names)https://python.github.io/python-docs-zh-tw/reference/expressions.html#atom-identifiers
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#literals
string, byteshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#strings
numerichttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numbers
keywordshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#keywords
ellipsis tokenhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#lexical-ellipsis
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-and-bytes-literals
escape sequenceshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escape-sequences
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#triple-quoted-strings
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-prefixes
Bytes literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#bytes-literal
Raw stringhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#raw-strings
Formatted string literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#f-strings
Template string literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#t-strings
PEP 414https://peps.python.org/pep-0414/
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#formal-grammar
"f-strings"https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#f-strings
"t-strings"https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#t-strings
negative lookaheadshttps://python.github.io/python-docs-zh-tw/reference/introduction.html#lexical-lookaheads
stringprefixhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringprefix
stringcontenthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringcontent
longstringitemhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem
longstringitemhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem
stringitemhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringitem
stringitemhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringitem
stringcharhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringchar
stringescapeseqhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringescapeseq
source_characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-source_character
stringitemhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-stringitem
source_characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-source_character
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escape-sequences
Ignored end of linehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-ignore
Backslashhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-escaped-char
Single quotehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-escaped-char
Double quotehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-escaped-char
八進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-oct
十六進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-hex
Named Unicode characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-named
Hexadecimal Unicode characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-long-hex
Hexadecimal Unicode characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-long-hex
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#ignored-end-of-line
triple-quoted stringshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#strings
string literal concatenationhttps://python.github.io/python-docs-zh-tw/reference/expressions.html#string-concatenation
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escaped-characters
rawhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#raw-strings
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#octal-character
DeprecationWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#DeprecationWarning
SyntaxWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#SyntaxWarning
SyntaxErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#SyntaxError
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#hexadecimal-character
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#named-unicode-character
bytes literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#bytes-literal
名稱別名 (name alias)https://www.unicode.org/Public/16.0.0/ucd/NameAliases.txt
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#hexadecimal-unicode-characters
bytes literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#bytes-literal
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#unrecognized-escape-sequences
DeprecationWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#DeprecationWarning
SyntaxWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#SyntaxWarning
SyntaxErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#SyntaxError
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#bytes-literals
byteshttps://python.github.io/python-docs-zh-tw/library/stdtypes.html#bytes
strhttps://python.github.io/python-docs-zh-tw/library/stdtypes.html#str
十六進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-hex
八進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-escape-oct
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#raw-string-literals
escape sequenceshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escape-sequences
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#formatted-string-literals
literal_charhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-literal_char
replacement_fieldhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-replacement_field
f_expressionhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-f_expression
conversionhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-conversion
format_spechttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-format_spec
conditional_expressionhttps://python.github.io/python-docs-zh-tw/reference/expressions.html#grammar-token-python-grammar-conditional_expression
or_exprhttps://python.github.io/python-docs-zh-tw/reference/expressions.html#grammar-token-python-grammar-or_expr
conditional_expressionhttps://python.github.io/python-docs-zh-tw/reference/expressions.html#grammar-token-python-grammar-conditional_expression
or_exprhttps://python.github.io/python-docs-zh-tw/reference/expressions.html#grammar-token-python-grammar-or_expr
yield_expressionhttps://python.github.io/python-docs-zh-tw/reference/expressions.html#grammar-token-python-grammar-yield_expression
literal_charhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-literal_char
replacement_fieldhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-replacement_field
lambdahttps://python.github.io/python-docs-zh-tw/reference/expressions.html#lambda
awaithttps://python.github.io/python-docs-zh-tw/reference/expressions.html#await
async forhttps://python.github.io/python-docs-zh-tw/reference/compound_stmts.html#async-for
repr()https://python.github.io/python-docs-zh-tw/library/functions.html#repr
str()https://python.github.io/python-docs-zh-tw/library/stdtypes.html#str
str()https://python.github.io/python-docs-zh-tw/library/stdtypes.html#str
repr()https://python.github.io/python-docs-zh-tw/library/functions.html#repr
ascii()https://python.github.io/python-docs-zh-tw/library/functions.html#ascii
format()https://python.github.io/python-docs-zh-tw/library/functions.html#format
__format__()https://python.github.io/python-docs-zh-tw/reference/datamodel.html#object.__format__
format specifiershttps://python.github.io/python-docs-zh-tw/library/string.html#formatspec
format specifier mini-languagehttps://python.github.io/python-docs-zh-tw/library/string.html#formatspec
str.format()https://python.github.io/python-docs-zh-tw/library/stdtypes.html#str.format
PEP 498https://peps.python.org/pep-0498/
str.format()https://python.github.io/python-docs-zh-tw/library/stdtypes.html#str.format
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#template-string-literals
formatted string literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#f-strings
string.templatelib.Templatehttps://python.github.io/python-docs-zh-tw/library/string.templatelib.html#string.templatelib.Template
format()https://python.github.io/python-docs-zh-tw/library/functions.html#format
Interpolationhttps://python.github.io/python-docs-zh-tw/library/string.templatelib.html#string.templatelib.Interpolation
Templatehttps://python.github.io/python-docs-zh-tw/library/string.templatelib.html#string.templatelib.Template
Interpolationhttps://python.github.io/python-docs-zh-tw/library/string.templatelib.html#string.templatelib.Interpolation
conversionhttps://python.github.io/python-docs-zh-tw/library/string.templatelib.html#string.templatelib.Interpolation.conversion
repr()https://python.github.io/python-docs-zh-tw/library/functions.html#repr
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numeric-literals
NUMBERhttps://python.github.io/python-docs-zh-tw/library/token.html#token.NUMBER
integerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-integer
floatnumberhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-floatnumber
imagnumberhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-imagnumber
inthttps://python.github.io/python-docs-zh-tw/library/functions.html#int
floathttps://python.github.io/python-docs-zh-tw/library/functions.html#float
complexhttps://python.github.io/python-docs-zh-tw/library/functions.html#complex
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#integer-literals
decintegerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-decinteger
binintegerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-bininteger
octintegerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-octinteger
hexintegerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-hexinteger
zerointegerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-zerointeger
nonzerodigithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-nonzerodigit
digithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digit
bindigithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-bindigit
octdigithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-octdigit
hexdigithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-hexdigit
digithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digit
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#floating-point-literals
approximations of real numbershttps://python.github.io/python-docs-zh-tw/reference/datamodel.html#datamodel-float
digitparthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digitpart
digitparthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digitpart
exponenthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-exponent
digitparthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digitpart
exponenthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-exponent
digitparthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digitpart
exponenthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-exponent
digithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digit
digithttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digit
digitparthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digitpart
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#imaginary-literals
complex numberhttps://python.github.io/python-docs-zh-tw/library/stdtypes.html#typesnumeric
integer literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#integers
operatorhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#operators
imaginary literalhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#imaginary
floatnumberhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-floatnumber
digitparthttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#grammar-token-python-grammar-digitpart
https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#operators-and-delimiters
OPhttps://python.github.io/python-docs-zh-tw/library/token.html#token.OP
list of these tokens and their nameshttps://python.github.io/python-docs-zh-tw/library/token.html#token-operators-delimiters
expressionshttps://python.github.io/python-docs-zh-tw/reference/expressions.html#expressions
getattr()https://python.github.io/python-docs-zh-tw/library/functions.html#getattr
keywordhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#keywords
Ellipsishttps://python.github.io/python-docs-zh-tw/library/constants.html#Ellipsis
目錄https://python.github.io/python-docs-zh-tw/contents.html
2. 詞法分析https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html
2.1. Line structurehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#line-structure
2.1.1. Logical lineshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#logical-lines
2.1.2. Physical lineshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#physical-lines
2.1.3. Commentshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#comments
2.1.4. Encoding declarationshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#encoding-declarations
2.1.5. Explicit line joininghttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#explicit-line-joining
2.1.6. Implicit line joininghttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#implicit-line-joining
2.1.7. Blank lineshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#blank-lines
2.1.8. Indentationhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#indentation
2.1.9. Whitespace between tokenshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#whitespace-between-tokens
2.1.10. End markerhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#end-marker
2.2. Other tokenshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#other-tokens
2.3. Names (identifiers and keywords)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#names-identifiers-and-keywords
2.3.1. 關鍵字https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#keywords
2.3.2. 軟關鍵字https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#soft-keywords
2.3.3. Reserved classes of identifiershttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#reserved-classes-of-identifiers
2.4. Literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#literals
2.5. String and Bytes literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-and-bytes-literals
2.5.1. 三引號字串https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#triple-quoted-strings
2.5.2. String prefixeshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#string-prefixes
2.5.3. Formal grammarhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#formal-grammar
2.5.4. 跳脫序列https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escape-sequences
2.5.4.1. Ignored end of linehttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#ignored-end-of-line
2.5.4.2. 跳脫字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#escaped-characters
2.5.4.3. 八進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#octal-character
2.5.4.4. 十六進位字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#hexadecimal-character
2.5.4.5. Named Unicode characterhttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#named-unicode-character
2.5.4.6. 十六進位 Unicode 字元https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#hexadecimal-unicode-characters
2.5.4.7. 無法辨識的跳脫序列https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#unrecognized-escape-sequences
2.5.5. 位元組常數https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#bytes-literals
2.5.6. 原始字串常數https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#raw-string-literals
2.5.7. f-string(f 字串)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#formatted-string-literals
2.5.8. t-string(t 字串)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#template-string-literals
2.6. Numeric literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#numeric-literals
2.6.1. Integer literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#integer-literals
2.6.2. 浮點數常數 (Floating-point literals)https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#floating-point-literals
2.6.3. Imaginary literalshttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#imaginary-literals
2.7. Operators and delimitershttps://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html#operators-and-delimiters
1. 簡介https://python.github.io/python-docs-zh-tw/reference/introduction.html
3. 資料模型https://python.github.io/python-docs-zh-tw/reference/datamodel.html
回報錯誤https://python.github.io/python-docs-zh-tw/bugs.html
顯示原始碼 https://github.com/python/cpython/blob/main/Doc/reference/lexical_analysis.rst?plain=1
索引https://python.github.io/python-docs-zh-tw/genindex.html
模組https://python.github.io/python-docs-zh-tw/py-modindex.html
下一頁https://python.github.io/python-docs-zh-tw/reference/datamodel.html
上一頁https://python.github.io/python-docs-zh-tw/reference/introduction.html
Pythonhttps://www.python.org/
3.14.0 Documentationhttps://python.github.io/python-docs-zh-tw/index.html
Python 語言參考手冊https://python.github.io/python-docs-zh-tw/reference/index.html
2. 詞法分析https://python.github.io/python-docs-zh-tw/reference/lexical_analysis.html
版權所有https://python.github.io/python-docs-zh-tw/copyright.html
歷史與授權條款https://python.github.io/license.html
敬請捐贈。https://www.python.org/psf/donations/
發現 bughttps://python.github.io/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.