"""select id from stock_picking where id in %s;"""  % (p)

其中,%s,是可以进行传值使用的,但是,当我们想向 %s 传值为空时,要如何做呢?使用 p ='(NULL)',就可以给sql语句传空值了,我试过了,好使哦!