1.while语句
格式:while 条件():
               条件满足,事情1
               条件满足,事情2
(1)定义一个整数变量,记录循环的次数
i=1
(2)开始循环
while i <= 3
   print 'hello'
   i += 1

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-07-27
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2021-12-29
  • 2021-11-04
  • 2021-11-04
  • 2021-07-06
  • 2021-11-04
相关资源
相似解决方案