Unicode identifiers in Python?

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

I want to build a Python function that calculates,

\"alt

5条回答
  •  隐瞒了意图╮
    2020-11-29 03:33

    Python 2.x does not support unicode identifiers, and consequently does not support Σ as an identifier. Python 3.x does support unicode identifiers, although many people will get cross if they have to edit source files with, for example, identifiers A and Α (latin A and greek capital alpha.) Sigma is often readable enough, but still, not as readable as the word sigma, so why bother?

提交回复
热议问题