Python 问号表达式(ternary conditional operator)的实现

a if condition else b

ref: https://stackoverflow.com/questions/394809/does-python-have-a-ternary-conditional-operator

猜你喜欢

转载自blog.csdn.net/norsd/article/details/81274372