python的三元运算举例

d =a if a>b else cblog 若是a>b成立,则把a的值给到d 。不然,将c的值赋给d。class 其实这里和if、else语句差很少。im
相关文章
相关标签/搜索