文章链接:https://blog.csdn.net/u011878172/article/details/72599120 [问题描述] 1.在一条查询语句中,查询条件既包含了整形又包含了字符串型,执行查询函数后,直接报%d format: a number is required, not str 2.例如 ,如下sql 语句 sql = 'select productid from product where productid = %d and productName = %s' [实…