Differences between revisions 1 and 2
Revision 1 as of 2006-04-27 16:35:14
Size: 40
Editor: yongshunz
Comment:
Revision 2 as of 2006-04-27 16:40:59
Size: 166
Editor: yongshunz
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
==Q:怎么样才能写成++x,x++那样 ==Q:怎么样才能写成++x,x++那样==

a=0
b=0
while a<100:
a,b=b,a+1
print b

  这样看起来可以个C中的
for(i=0;i<100;i++)
print i
一样

==Q:怎么样才能写成++x,x++那样==

a=0 b=0 while a<100: a,b=b,a+1 print b

  • 这样看起来可以个C中的

for(i=0;i<100;i++) print i 一样

PyIAQ/Q4 (last edited 2009-12-25 07:09:52 by localhost)