sql_q.format

 

field_q_insert = 'id, title, number, created,content'
sql_q = 'INSERT INTO testquestion ({}) VALUES ({})'.format(field_q_insert,'{}')
print(sql_q)
print(sql_q.format('1212'))
ddd=9


posted @ 2018-12-18 14:41  papering  阅读(218)  评论(0编辑  收藏  举报