两个数都等于0或者都不等于0 为真

 a==0?(b==0?true:false):(b!=0?true:false)

原文地址:https://www.cnblogs.com/shenjun/p/3029324.html