ret = 1 == 1 ? ‘true‘ : ‘false‘
ret = ‘true‘ if 1==1 else ‘false‘
python中的3目运算(3元表达式)
原文:https://www.cnblogs.com/412013cl/p/8436548.html