通过本文主要向大家介绍了python条件语句,python 条件表达式,python 条件判断,python 条件,python 条件赋值等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
return (1==1) ? "is easy" : "my god" //C#中的用法
其实,在Python中,是这样写的:
print (1==2) and 'Fool' or 'Not bad'
输出结果:
Not bad
</div>
其实,在Python中,是这样写的:
print (1==2) and 'Fool' or 'Not bad'
输出结果:
Not bad
</div>

