您即将离开腾讯云开发者社区,请注意您的账号财产安全
https://docs.python.org/3/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator
继续访问