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中,还是个不错的函数。