那我就举个例子说明一下吧!比如删除以下DataFrame的后两列: 0 1 20 1 0 11 0 0 12 1 0 13 0 0 14 0 0 1然后这样写:df.ix[:,~((df==1).all()|(df==0).all())]