does Python support constants that are enforced by the interpreter? [duplicate]
Possible Dupli开发者_C百科cate:
Creating constant in Python
Does Python support constants that are enforced by the interpreter? For example: integer constants. How about a programmer defined enumerated type?
No. If you want something to be constant then just refrain from modifying it.
精彩评论