# 索引 – 符號

- ! (exclamation)
  - in a command interpreter
  - in curses module
  - in formatted string literal
  - in glob-style wildcards, [1]
  - in string formatting
  - in struct format strings
- ! (pdb command)
- !=
  - 運算子, [1]
- " (double quote)
  - string literal
- """
  - string literal
- # (hash)
  - comment, [1], [2]
  - in doctests
  - in printf-style formatting, [1]
  - in regular expressions
  - in string formatting
  - source encoding declaration
- $ (dollar)
  - environment variables expansion
  - in regular expressions
  - in template strings
  - interpolation in configuration files
- % (percent)
  - datetime format, [1], [2]
  - environment variables expansion (Windows), [1]
  - interpolation in configuration files
  - printf-style formatting, [1]
  - 運算子, [1]
- %=
  - augmented assignment
- & (ampersand)
  - 運算子, [1]
- &=
  - augmented assignment
- ' (single quote)
  - string literal
- '''
  - string literal
- () (parentheses)
  - call
  - class definition
  - function definition
  - generator expression
  - in assignment target list
  - in printf-style formatting, [1]
  - in regular expressions
  - tuple display
- (?
  - in regular expressions
- (?!
  - in regular expressions
- (?#
  - in regular expressions
- (?:
  - in regular expressions
- (?<!
  - in regular expressions
- (?<=
  - in regular expressions
- (?=
  - in regular expressions
- (?P<
  - in regular expressions
- (?P=
  - in regular expressions
- * (asterisk)
  - function definition
  - import statement
  - in AST grammar
  - in argparse module
  - in assignment target list
  - in expression lists
  - in function calls, [1]
  - in glob-style wildcards, [1]
  - in printf-style formatting, [1]
  - in regular expressions
  - 運算子, [1]
- **
  - function definition
  - in dictionary displays
  - in function calls, [1]
  - in glob-style wildcards
  - 運算子, [1]
- **=
  - augmented assignment
- *=
  - augmented assignment
- *?
  - in regular expressions
- + (plus)
  - binary operator, [1]
  - in argparse module
  - in doctests
  - in printf-style formatting, [1]
  - in regular expressions
  - in string formatting
  - unary operator, [1]
- +=
  - augmented assignment
- +?
  - in regular expressions
- , (comma)
  - argument list
  - expression list, [1], [2], [3], [4]
  - identifier list, [1]
  - import statement
  - in dictionary displays
  - in string formatting
  - in target list
  - parameter list
  - slicing
  - tuple display
  - with statement
- - (minus)
  - binary operator, [1]
  - in doctests
  - in glob-style wildcards, [1]
  - in printf-style formatting, [1]
  - in regular expressions
  - in string formatting
  - unary operator, [1]
- --best
  - gzip 命令列選項
- --check-hash-based-pycs default|always|never
  - 命令列選項
- --create <tarfile> <source1> ... <sourceN>
  - tarfile 命令列選項
- --create <zipfile> <source1> ... <sourceN>
  - zipfile 命令列選項
- --details
  - inspect 命令列選項
- --extract <tarfile> [<output_dir>]
  - tarfile 命令列選項
- --extract <zipfile> <output_dir>
  - zipfile 命令列選項
- --fast
  - gzip 命令列選項
- --help
  - trace 命令列選項
  - 命令列選項
- --ignore-dir=<dir>
  - trace 命令列選項
- --ignore-module=<mod>
  - trace 命令列選項
- --info
  - zipapp 命令列選項
- --invalidation-mode [timestamp|checked-hash|unchecked-hash]
  - compileall 命令列選項
- --json-lines
  - json.tool 命令列選項
- --list <tarfile>
  - tarfile 命令列選項
- --list <zipfile>
  - zipfile 命令列選項
- --locals
  - unittest 命令列選項
- --sort-keys
  - json.tool 命令列選項
- --test <tarfile>
  - tarfile 命令列選項
- --test <zipfile>
  - zipfile 命令列選項
- --user-base
  - site 命令列選項
- --user-site
  - site 命令列選項
- --version
  - trace 命令列選項
  - 命令列選項
- -=
  - augmented assignment
- ->
  - function annotations, [1]
- -?
  - 命令列選項
- -a, --annotate
  - pickletools 命令列選項
- -B
  - 命令列選項
- -b
  - compileall 命令列選項
  - 命令列選項
- -b, --buffer
  - unittest 命令列選項
- -c <command>
  - 命令列選項
- -c <tarfile> <source1> ... <sourceN>
  - tarfile 命令列選項
- -c <zipfile> <source1> ... <sourceN>
  - zipfile 命令列選項
- -c, --catch
  - unittest 命令列選項
- -c, --compress
  - zipapp 命令列選項
- -c, --count
  - trace 命令列選項
- -C, --coverdir=<dir>
  - trace 命令列選項
- -d
  - 命令列選項
- -d destdir
  - compileall 命令列選項
- -d, --decompress
  - gzip 命令列選項
- -E
  - 命令列選項
- -e <tarfile> [<output_dir>]
  - tarfile 命令列選項
- -e <zipfile> <output_dir>
  - zipfile 命令列選項
- -e, --exact
  - tokenize 命令列選項
- -f
  - compileall 命令列選項
- -f, --failfast
  - unittest 命令列選項
- -f, --file=<file>
  - trace 命令列選項
- -g, --timing
  - trace 命令列選項
- -h
  - 命令列選項
- -h, --help
  - gzip 命令列選項
  - json.tool 命令列選項
  - timeit 命令列選項
  - tokenize 命令列選項
  - zipapp 命令列選項
- -I
  - 命令列選項
- -i
  - 命令列選項
- -i list
  - compileall 命令列選項
- -J
  - 命令列選項
- -j N
  - compileall 命令列選項
- -k
  - unittest 命令列選項
- -l
  - compileall 命令列選項
- -l <tarfile>
  - tarfile 命令列選項
- -l <zipfile>
  - zipfile 命令列選項
- -l, --indentlevel=<num>
  - pickletools 命令列選項
- -l, --listfuncs
  - trace 命令列選項
- -m <mainfn>, --main=<mainfn>
  - zipapp 命令列選項
- -m <module-name>
  - 命令列選項
- -m, --memo
  - pickletools 命令列選項

- -m, --missing
  - trace 命令列選項
- -n N, --number=N
  - timeit 命令列選項
- -O
  - 命令列選項
- -o <output>, --output=<output>
  - zipapp 命令列選項
- -o, --output=<file>
  - pickletools 命令列選項
- -OO
  - 命令列選項
- -p <interpreter>, --python=<interpreter>
  - zipapp 命令列選項
- -p, --pattern pattern
  - unittest-discover 命令列選項
- -p, --preamble=<preamble>
  - pickletools 命令列選項
- -p, --process
  - timeit 命令列選項
- -q
  - compileall 命令列選項
  - 命令列選項
- -R
  - 命令列選項
- -r
  - compileall 命令列選項
- -r N, --repeat=N
  - timeit 命令列選項
- -R, --no-report
  - trace 命令列選項
- -r, --report
  - trace 命令列選項
- -S
  - 命令列選項
- -s
  - 命令列選項
- -s S, --setup=S
  - timeit 命令列選項
- -s, --start-directory directory
  - unittest-discover 命令列選項
- -s, --summary
  - trace 命令列選項
- -t <tarfile>
  - tarfile 命令列選項
- -t <zipfile>
  - zipfile 命令列選項
- -t, --top-level-directory directory
  - unittest-discover 命令列選項
- -t, --trace
  - trace 命令列選項
- -T, --trackcalls
  - trace 命令列選項
- -u
  - 命令列選項
- -u, --unit=U
  - timeit 命令列選項
- -V
  - 命令列選項
- -v
  - 命令列選項
- -v, --verbose
  - tarfile 命令列選項
  - timeit 命令列選項
  - unittest-discover 命令列選項
- -W arg
  - 命令列選項
- -X
  - 命令列選項
- -x
  - 命令列選項
- -x regex
  - compileall 命令列選項
- . (dot)
  - attribute reference
  - in Tkinter
  - in glob-style wildcards
  - in numeric literal
  - in pathnames, [1]
  - in printf-style formatting, [1]
  - in regular expressions
  - in string formatting
- ..
  - in pathnames
- ...
  - ellipsis literal, [1], [2]
  - in doctests
  - interpreter prompt, [1]
  - placeholder, [1], [2]
- .ini
  - file
- .pdbrc
  - file
- .pypirc file
- / (slash)
  - in pathnames, [1]
  - 運算子, [1]
- //
  - 運算子, [1]
- //=
  - augmented assignment
- /=
  - augmented assignment
- 0b
  - integer literal
- 0o
  - integer literal
- 0x
  - integer literal
- 2to3
- : (colon)
  - annotated variable
  - compound statement, [1], [2], [3], [4], [5], [6]
  - function annotations, [1]
  - in SQL statements
  - in dictionary expressions
  - in formatted string literal
  - in string formatting
  - lambda expression
  - path separator (POSIX)
  - slicing
- ; (semicolon), [1]
- < (less)
  - in string formatting
  - in struct format strings
  - 運算子, [1]
- <<
  - 運算子, [1]
- <<=
  - augmented assignment
- <=
  - 運算子, [1]
- <BLANKLINE>
- = (equals)
  - assignment statement
  - class definition
  - function definition
  - in function calls
  - in string formatting
  - in struct format strings
- ==
  - 運算子, [1]
- > (greater)
  - in string formatting
  - in struct format strings
  - 運算子, [1]
- >=
  - 運算子, [1]
- >>
  - 運算子, [1]
- >>=
  - augmented assignment
- >>>
  - interpreter prompt, [1]
- ? (question mark)
  - in AST grammar
  - in SQL statements
  - in a command interpreter
  - in argparse module
  - in glob-style wildcards, [1]
  - in regular expressions
  - in struct format strings, [1]
  - replacement character
- ??
  - in regular expressions
- @ (at)
  - class definition
  - function definition
  - in struct format strings
  - 運算子
- [] (square brackets)
  - in assignment target list
  - in glob-style wildcards, [1]
  - in regular expressions
  - in string formatting
  - list expression
  - subscription
- \ (backslash)
  - escape sequence, [1]
  - in pathnames (Windows)
  - in regular expressions, [1], [2]
- \\
  - escape sequence
  - in regular expressions
- \A
  - in regular expressions
- \a
  - escape sequence
  - in regular expressions
- \B
  - in regular expressions
- \b
  - escape sequence
  - in regular expressions, [1]
- \D
  - in regular expressions
- \d
  - in regular expressions
- \f
  - escape sequence
  - in regular expressions
- \g
  - in regular expressions
- \N
  - escape sequence, [1]
  - in regular expressions
- \n
  - escape sequence
  - in regular expressions
- \r
  - escape sequence
  - in regular expressions
- \S
  - in regular expressions
- \s
  - in regular expressions
- \t
  - escape sequence
  - in regular expressions
- \U
  - escape sequence, [1]
  - in regular expressions
- \u
  - escape sequence, [1]
  - in regular expressions
- \v
  - escape sequence
  - in regular expressions
- \W
  - in regular expressions
- \w
  - in regular expressions
- \x
  - escape sequence, [1]
  - in regular expressions
- \Z
  - in regular expressions
- ^ (caret)
  - in curses module
  - in regular expressions, [1]
  - in string formatting
  - marker, [1]
  - 運算子, [1]
- ^=
  - augmented assignment
- {} (curly brackets)
  - dictionary expression
  - in formatted string literal
  - in regular expressions
  - in string formatting
  - set expression
- | (vertical bar)
  - in regular expressions
  - 運算子, [1]
- |=
  - augmented assignment
- ~ (tilde)
  - home directory expansion
  - 運算子, [1]