sql_word = "insert into xhs_note(name,is_ads,nickename,user_id,note_id,title,desc_content,time_stamp,crawl_time,liked_count,collected_count,comments_count,comment_content)values('%s','0','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')" % (
user_name, nickname, user_id, note_list_id, note_list_title, desc_content, str(time_stamp),
这种几十个字段的这种不用json 能有其他方式快点处理吗?因为字段太多了,很麻烦,写几十个%s
用第三方orm库