# 索引 – 符号

- ! (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
  - 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
- / (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]