Unicode identifiers in Python?

后端 未结 5 608
[愿得一人]
[愿得一人] 2020-11-29 03:04

I want to build a Python function that calculates,

\"alt

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 03:15

    It's worth pointing out that Python 3 does support Unicode identifiers, but only allows letter or number like symbols (see http://docs.python.org/3.3/reference/lexical_analysis.html#identifiers for full details). That's why Σ works (remember that it's a Greek letter, not just a math symbol), but √ doesn't.

提交回复
热议问题