Differences between revisions 8 and 10 (spanning 2 versions)
Revision 8 as of 2006-07-25 12:49:32
Size: 743
Editor: simonyanix
Comment:
Revision 10 as of 2009-12-25 07:14:53
Size: 793
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Email: [[MailTo(simonyanix AT SPAMFREE gmail DOT com)]] Email: <<MailTo(simonyanix AT SPAMFREE gmail DOT com)>>
Line 17: Line 17:
...  x = 0
...  print ’Negative changed to zero’
...     x = 0
...     print ’Negative changed to zero’
Line 20: Line 20:
...  print ’Zero’ ...     print ’Zero’
Line 22: Line 22:
...  print ’Single’ ...     print ’Single’
Line 24: Line 24:
...  print ’More’ ...     print ’More’
Line 27: Line 27:
 . [http://blog.csdn.net/simonyanix 我的博客, csdn上的]
 . CategoryHomepage ["个人网页分类"]
''' 大家留言'''

--------
. [[http://blog.csdn.net/simonyanix|我的博客, csdn上的]]
 . CategoryHomepage [[个人网页分类]]

赛门同学

Email: <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)