Django Book 翻译
菜单>:
TOC
返回
原文:
Another common need is to look up only a fixed number of rows. Imagine you have thousands of publishers in your database, but you want to display only the first one. You can do this using Pythons standard list slicing syntax:
翻译:
另一个常用的需求就是取出固定数目的记录。想象一下你有成千上万的出版商在你的数据库里, 但是你只想显示第一个。你可以这样做:
备注:
译者: