Differences between revisions 2 and 3
Revision 2 as of 2006-04-27 16:40:59
Size: 166
Editor: yongshunz
Comment:
Revision 3 as of 2006-04-27 16:41:59
Size: 182
Editor: yongshunz
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
a=0
b=0
while a<100:
a,b=b,a+1
print b
  a=0
  b=0
  while a<100:
  a,b=b,a+1
  print b
Line 10: Line 10:
for(i=0;i<100;i++)
print i
一样
  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)