参考:https://www.cnblogs.com/devlost/p/9908578.html
value = true if condition else false
等同于
if condition: value = true else: value = false
参考:https://www.cnblogs.com/devlost/p/9908578.html
value = true if condition else false
等同于
if condition: value = true else: value = false
来源:https://www.cnblogs.com/qianslup/p/11828914.html