阅读背景:

Python的三元运算及lamda表达式

来源:互联网 

(1)三元运算

result='gt' if 1>3 else 'lt'
print resultprint res




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: