Django Book 翻译
菜单>:
TOC
返回
原文:
Next, we construct the HTML output of this view function, just as we did in ``current_datetime`` . A small difference in this line from the previous line is that it uses Pythons format-string capability with *two* values, not just one. Hence, there are two ``%s`` symbols in the string and a tuple of values to insert: ``(offset, dt)`` .
翻译:
这行和前面的那行的的一个微小差别就是,它使用带有两个值的Python的格式化字符串功能, 而不仅仅是一个值。因此,在字符串中有两个 ``%s`` 符号和一个以进行插入的值的元组: ``(offset, dt)`` 。
备注:
译者: