Differences between revisions 9 and 13 (spanning 4 versions)
Revision 9 as of 2006-04-28 14:21:45
Size: 213
Editor: yongshunz
Comment:
Revision 13 as of 2009-12-25 07:09:52
Size: 372
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
''' 顺便说一句,下面程序里的行号并不是程序的一部分,任何与 BASIC 类似的东西都是站不住脚的 '''
Line 3: Line 5:
  a=0
  while a<100:
  a=a+1
  print a
      1 a=0
      2 while a<100:
      3 a=a+1
      4 print a
Line 8: Line 10:
  这样看起来可以个C中的  . 这样看起来可以个C中的
Line 10: Line 12:
  for(i=0;i<100;i++)
  print i
}}} 一样
----
["常见问题分类"]
   1 for(i=0;i<100;i++)
   2 {printf("%d",i);}

}}}
一样

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

顺便说一句,下面程序里的行号并不是程序的一部分,任何与 BASIC 类似的东西都是站不住脚的

      1 a=0
      2 while a<100:
      3     a=a+1
      4     print a
  • 这样看起来可以个C中的

   1 for(i=0;i<100;i++)
   2 {printf("%d",i);}
  • 一样

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