Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.125 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.04; 'output': 0.05; '>>>': 0.22; '>>>': 0.24; 'message-id:@mail.gmail.com': 0.30; 'subject:the': 0.34; 'received:google.com': 0.35; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; '"not': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=O3RymKu38M4eB8XuQrKOPDFG4Q7sckIIBTUX+kZwSG0=; b=g9S9zaedcNPPb8bwwVF1w7pDNQwaBOB4wmwyiMYkfd+2UR7V6GZ+ggwzm+vuFrkuC3 dFroFlOn3ziU5h33WIMNDS4Ci0+6tu0tF8pNeucqrOI5GlLGlmgSXgYlvQ8HnPIOFoOP OA+ZueLGBPVpg7xhHzn51oO3jacngUDPTg2eCgVgCtyTYJ27kUkqm9WILMwx4oupjvDL YKyMGiuJZyoJhaZuwlcgnbNk2MVycCOowVenbZGbuqGKanSXJOgewYotPJu+tM2jKXAo +7IRpIiSvRoJ5p1oJoazx4PQN7H2zP9Na9ZHa7Y5YhWNOrDHM8ZCUse+TFv6ipPwPqkL IXbw== MIME-Version: 1.0 X-Received: by 10.112.94.229 with SMTP id df5mr3547699lbb.36.1397170953036; Thu, 10 Apr 2014 16:02:33 -0700 (PDT) Date: Fri, 11 Apr 2014 07:02:33 +0800 Subject: the logical operation confused me From: length power To: python-list@python.org Content-Type: multipart/alternative; boundary=001a1135f7ac58a8d504f6b83679 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397170954 news.xs4all.nl 2876 [2001:888:2000:d::a6]:41803 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70069 --001a1135f7ac58a8d504f6b83679 Content-Type: text/plain; charset=ISO-8859-1 >>> "ok" or "not ok" 'ok' >>> "ok" and "not ok" 'not ok' >>> why "ok" or "not ok" output "ok" , "ok" and "not ok" output "not ok" ? --001a1135f7ac58a8d504f6b83679 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
>>> "ok" or "not ok"
= 'ok'
>>> "ok" and "not ok"
'= not ok'
>>>

why "ok" or "not o= k" output "ok"=A0 , "ok" and "not ok"=A0= output "not ok" ?

--001a1135f7ac58a8d504f6b83679--