乘方:** 三元运算: result=val1 if condition else val2,如d=a if a>b else c 转载于:https://www.cnblogs.com/Treelight/p/9749176.html