Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2006-07-24 15:54:36
Size: 250
Editor: simonyanix
Comment:
Revision 5 as of 2006-07-24 16:06:37
Size: 576
Editor: simonyanix
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
我就是赛门同学
...
== 蟒语研习点滴 ==
1. Python是一个缩进很严格的语言
我就是赛门同学 ...
Line 11: Line 8:
= 蟒语研习点滴 =
== Python是一个缩进很严格的语言 ==
1.一个新的语句群之后的语句要向前缩进
{{{#!
>>> x = int(raw_input("Please enter an integer: "))
>>> if x < 0:
... x = 0
... print ’Negative changed to zero’
... elif x == 0:
... print ’Zero’
... elif x == 1:
... print ’Single’
... else:
... print ’More’
}}}
Line 13: Line 24:
 CategoryHomepage  . CategoryHomepage ["个人网页分类"]

赛门同学

Email: MailTo(simonyanix AT SPAMFREE gmail DOT com)

我就是赛门同学 ...

蟒语研习点滴

Python是一个缩进很严格的语言

1.一个新的语句群之后的语句要向前缩进

>>> x = int(raw_input("Please enter an integer: "))
>>> if x < 0:
... x = 0
... print ’Negative changed to zero’
... elif x == 0:
... print ’Zero’
... elif x == 1:
... print ’Single’
... else:
... print ’More’


simonyanix (last edited 2009-12-25 07:14:53 by localhost)