三元运算

name = name1 if 条件 else name2

原文地址:https://www.cnblogs.com/y990441/p/6257920.html