Django Book 翻译
菜单>:
TOC
返回
原文:
``offset`` is the string captured by the parentheses in the URLpattern. For example, if the requested URL were ``/time/plus/3/`` , then ``offset`` would be the string ``'3'`` . If the requested URL were ``/time/plus/21/`` , then ``offset`` would be the string ``'21'`` . Note that captured strings will always be *strings* , not integers, even if the string is composed of only digits, such as ``'21'`` .
翻译:
``offset`` 是从匹配的URL里提取出来的。例如: 如果URL是 ``/time/plus/3/`` 那么 ``offset`` 是字符串 ``'3'`` , 如果URL是 ``/time/plus/21/`` ,那么 ``offset`` 是字符串 ``'21'`` , 注意,提取的字符串总是 *字符串* ,不是整数,即便都是数字组成,就象 ``'21'`` 。
备注:
译者: