好吧,你可以这样做:
>>> if all (k in foo for k in ("foo","bar")):... print "They're there!"...They're there!
上一篇 python中的%r是什么意思
下一篇 在withColumn下将数据框列和外部列表传递给udf
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号