用List实现Python里的?:条件表达式 >>> [1,2][1==0]1>>> [1,2][1<>0]2 转载于:https://www.cnblogs.com/littleebeer/p/3353456.html