不在Python 2.x中。来自the docs:identifier ::= (letter|"_") (letter | digit | "_")*
letter ::= lowercase | uppercase
lowercase ::= "a"..."z"
uppercase ::= "A"..."Z"
digit ::= "0"..."9"identifier ::= xid_start xid_continue*
id_start ::=
the underscore, and characters with the Other_ID_Start property>
id_continue ::=
Mn, Mc, Nd, Pc and others with the Other_ID_Continue property>
xid_start ::=
is in "id_start xid_continue*">
xid_continue ::=
is in "id_continue*">
The Unicode category codes mentioned above stand for:
Lu - uppercase letters
Ll - lowercase letters
Lt - titlecase letters
Lm - modifier letters
Lo - other letters
Nl - letter numbers
Mn - nonspacing marks
Mc - spacing combining marks
Nd - decimal numbers
Pc - connector punctuations
Other_ID_Start - explicit list of characters in PropList.txt
to support backwards compatibility
Other_ID_Continue - likewise