
python并列条件判断怎么写例如ifa>b&c
1个回答
展开全部
$ python
Python 2.7.3 (default, Mar 14 2014, 11:57:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1
>>> b = 2
>>> c = 2
>>> d = 4
>>> if a < b == c < d:
... print "OK"
...
OK
>>>
Python 2.7.3 (default, Mar 14 2014, 11:57:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1
>>> b = 2
>>> c = 2
>>> d = 4
>>> if a < b == c < d:
... print "OK"
...
OK
>>>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询