314598340 发表于 2017-4-26 09:02:16

python --- locals()函数

>>> help(locals)


Help on built-in function locals in module __builtin__:

locals(...)
    locals() -> dictionary

    Update and return a dictionary containing the current scope's local variables.


在django中,还是个不错的函数。
页: [1]
查看完整版本: python --- locals()函数