Skip to main content
 首页 » 编程设计

python之简明地说 "none of the elements of an array are None"

2025年05月04日12fff_TT

什么是简洁的 python 表达方式

if <none of the elements of this array are None>: 
   # do a bunch of stuff once 

请您参考如下方法:

为什么不简单,

None not in lst