Python3允许使用unicode统一码作为变量名,但是只允许类字母的字符,不能使用emoji。
# Python 3 allows unicode
# variable names:
>>> π = math.pi
>>> class Spin̈alTap: pass
>>> Spin̈alTap()
<Spin̈alTap object at 0x10e58d908>
# Only letter-like characters
# work, however:
>>> 🍺 = "beer"
SyntaxError: