这里提供一个思路,使用字符串拼接的方法,将sql语句拼接出来,然后去执行: l = ["1", "abc", "2"] s = '-' print(s.join(l)) 转载于:https://www.cnblogs.com/zrmw/p/9948045.html