description = "This is the description"
comment = "This is the comment"
query = "insert into case(desc, comm) value(description, comment)"
注:
可能有
单引号
双引号
两者都有
和
评论
.
如何使用格式化的%s生成查询字符串?
更新:
多亏了绿斗篷男(他/她的回答有未成年人需要纠正),正确的问题是:
query=f“插入case(description,comment)值('{description}','{comment}')”