Django Book 翻译
菜单>:
TOC
返回
原文:
A final thing to consider is that ``locals()`` incurs a small bit of overhead, because when you call it, Python has to create the dictionary dynamically. If you specify the context dictionary manually, you avoid this overhead.
翻译:
最后要考虑的是在你调用 ``locals()`` 时,Python 必须得动态创建字典,因此它会带来一点额外的开销。如果手动指定 context 字典,则可以避免这种开销。
备注:
译者: