Django Book 翻译
菜单>:
TOC
返回
原文:
We decided to call the variable ``offset`` , but you can call it whatever youd like, as long as its a valid Python identifier. The variable name doesnt matter; all that matters is that its the second argument to the function (after ``request`` ). Its also possible to use keyword, rather than positional, arguments in an URLconf. We cover that in Chapter 8.
翻译:
在这里我们命名变量为 ``offset`` ,你也可以任意命名它,只要符合Python 的语法。变量名是无关紧要的,重要的是它的位置,它是这个函数的第二个 参数 (在 ``request`` 的后面)。你还可以使用关键字来定义它,而不是用 位置。详情请看第八章。
备注:
译者: