You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cols, args = zip(*kw.iteritems()) 中*kw是不是应该改成kw 以便使用iteritems()方法提取k w ?
sql='insert into %s(%s) values(%s)'%(table,','.join(['%s'% col for col in cols]),','.join(['?' for i range(len(cols))]))中 第二个%s是要插入的列 第三个%s是要插入的值 ,所以 ','.join(['%s'% col for col in cols]),','.join(['?' for i range(len(cols))])是不是反了?
3.还有一个弱智的问题,第一个%s使用'``'符号是什么意思?
还请帮忙,小白看不懂
The text was updated successfully, but these errors were encountered:
blog-python-app/www/transwarp/db.py
Line 345 in 8a92f60
cols, args = zip(*kw.iteritems())
中*kw
是不是应该改成kw 以便使用iteritems()方法提取k w ?sql='insert into
%s(%s) values(%s)'%(table,','.join(['
%s'% col for col in cols]),','.join(['?' for i range(len(cols))]))中 第二个
%s是要插入的列 第三个
%s是要插入的值 ,所以','.join(['
%s'% col for col in cols]),','.join(['?' for i range(len(cols))])
是不是反了?3.还有一个弱智的问题,第一个%s使用
'``'
符号是什么意思?还请帮忙,小白看不懂
The text was updated successfully, but these errors were encountered: