Received: by 10.224.189.75 with SMTP id dd11mr5036712qab.6.1347197275431; Sun, 09 Sep 2012 06:27:55 -0700 (PDT) Received: by 10.68.244.73 with SMTP id xe9mr48564pbc.10.1347197274206; Sun, 09 Sep 2012 06:27:54 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!v8no1198667qap.0!news-out.google.com!da15ni37064541qab.0!nntp.google.com!r4no8250866pbs.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sun, 9 Sep 2012 06:27:53 -0700 (PDT) In-Reply-To: <48fbfc85-c495-4131-a18a-1ebb94e7ce20@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=112.115.127.33; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX NNTP-Posting-Host: 112.115.127.33 References: <48fbfc85-c495-4131-a18a-1ebb94e7ce20@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <874765ea-d1cd-40cc-ac8c-ff694648cfae@googlegroups.com> Subject: =?windows-1252?Q?Re=3A_What=92s_the_differences_between_these_two__piec?= =?windows-1252?Q?es_of_code_=3F?= From: iMath Injection-Date: Sun, 09 Sep 2012 13:27:55 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:28770 =E5=9C=A8 2012=E5=B9=B47=E6=9C=887=E6=97=A5=E6=98=9F=E6=9C=9F=E5=85=ADUTC+8= =E4=B8=8B=E5=8D=8812=E6=97=B656=E5=88=8635=E7=A7=92=EF=BC=8CiMath=E5=86=99= =E9=81=93=EF=BC=9A > What=E2=80=99s the differences between these two pieces of code ? >=20 > (1) >=20 > for i in range(1, 7): >=20 > print(2 * i, end=3D' ') >=20 >=20 >=20 > thx everyone >=20 > (2) >=20 > for i in range(1, 7): >=20 > print(2 * i, end=3D' ') >=20 > print() >=20 >=20 >=20 >=20 >=20 > when executed both respectively in Python shell ,I get the same effect= . Who can tell me why ?