Py学习  »  问与答

求助: python中TypeError: not enough arguments for format string

djangolover • 10 年前 • 8150 次点击  

执行

RawQuery(Post, "select date_format(created,'%Y') year,\
                        date_format(created,'%m') month,count(id) count from posts group by \
                        month")

出现如标题的错误。

求助~

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/193
 
8150 次点击  
文章 [ 1 ]  |  最新文章 10 年前
Py站长
Reply   •   1 楼
Py站长    10 年前

试一下

RawQuery(Post, "select date_format(created,'%%Y') year,\
                        date_format(created,'%%m') month,count(id) count from posts group by \
                        month")