Differences between revisions 7 and 8
Revision 7 as of 2006-04-28 00:33:31
Size: 210
Editor: ZoomQuiet
Comment:
Revision 8 as of 2006-04-28 00:33:54
Size: 224
Editor: ZoomQuiet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
{{{
Line 8: Line 8:
}}}
Line 10: Line 10:
{{{
Line 12: Line 13:
  一样 }}} 一样

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)