Django Book 翻译
菜单>:
TOC
返回
原文:
The second line of code within the function constructs an HTML response using Pythons format-string capability. The ``%s`` within the string is a placeholder, and the percent sign after the string means Replace the ``%s`` with the value of the variable ``now`` . (Yes, the HTML is invalid, but were trying to keep the example simple and short.)
翻译:
函数的第二行代码用 Python 的格式化字符串(format-string)功能构造了一段 HTML 响应。字符串里面的 ``%s`` 是占位符,字符串之后的百分号表示使用变量 ``now`` 的值替换 ``%s`` 。(是的,这段 HTML 不合法,但我们只不过是想让范例尽量保持简短而已。)
备注:
译者: