i*****f 发帖数: 578 | 1 Users of curly bracket programming languages, such as C or Java, sometimes
expect or wish Python to follow a block-delimiter convention. Brace-
delimited block syntax has been repeatedly requested, and consistently
rejected by core developers. The Python interpreter contains an easter egg
that summarizes its developers' feelings on this issue. The code from __
future__ import braces raises the exception SyntaxError: not a chance.
>>> from __future__ import braces
File "", line 1
SyntaxE | E*****m 发帖数: 25615 | |
|