python并列条件判断怎么写例如ifa>b&c
发布网友
发布时间:2024-10-01 02:19
我来回答
共1个回答
热心网友
时间:2024-11-19 08:05
$ 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
>>>