a,b(是数字)sql="insert into stock_staff VALUES(a,b,c,d)"sql="insert into stock_staff VALUES(" +a,b,c,d+ ")"sql="insert into stock_staff VALUES(" +a+ "," +b+ "," +c+ "," +d+ ")"sql="insert into stock_staff VALUES(" +str(a)+ "," +str(b)+ ",'" +c+ "','" +d+ "')"
如果觉得《python中sql拼接字符串过程》对你有帮助,请点赞、收藏,并留下你的观点哦!