text: """
  Python for循环可以遍历任何序列的项目，如一个列表或者一个字符串。
  for循环的一般格式如下：
  for <variable> in <sequence>:
      <statements>
  else:
      <statements>
  """
  
  languages = ["C", "C++", "Perl", "Python"]
  for x in languages:
      print(x)
  # break 语句用于跳出当前循环体
  sites = ["Baidu", "Google", "Runoob", "Taobao"]
  for site in sites:
      if site == "Runoob":
          print("菜鸟教程!")
          break
      print("循环数据 " + site)
  else:
      print("没有循环数据!")
  print("完成循环!")
  