dickrong 发表于 2018-8-7 06:58:17

python 20171115学习记录

  遍历列表
  def travel(string):
  index = 0
  while index < len(string):
  letter = string
  print letter
  index = index + 1
  a = "12ww1wwwwww"
  print travel(a)
  bogon:hhhhh zhouhaijun$ python py_02.py
  1
  2
  w
  w
  1
  w
  w
  w
  w
  w
  w
页: [1]
查看完整版本: python 20171115学习记录