Django Book 翻译
菜单>:
TOC
返回
原文:
Similarly, dots also allow access of object attributes. For example, a Python ``datetime.date`` object has ``year`` , ``month`` , and ``day`` attributes, and you can use a dot to access those attributes in a Django template:
翻译:
同样,也可以通过句点来访问对象的属性。比方说, Python 的 ``datetime.date`` 对象有 ``year`` 、 ``month`` 和 ``day`` 几个属性,你同样可以在模板中使用句点来访问这些属性:
备注:
译者: