# coding:utf-8

# 打印1到10之间的整数,不要把5打印出来

# index = 0
# while index < 10:
# 	index += 1
# 	if index ==5:
# 		continue     #退出此次循环
# 	print(index)


# 打印1-10之间的所有奇数

# index = 0
# while index < 10:
# 	index += 1
# 	if index % 2 ==0:
# 		continue
# 	print(index)
# 结果如下
# 1
# 3
# 5
# 7
# 9

 

相关文章:

  • 2021-05-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-05-13
  • 2021-09-16
  • 2021-07-26
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案