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

a if condition else b

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

posted on 2024-08-28 03:58  norsd  阅读(2)  评论(0编辑  收藏  举报  来源

导航