遍历列表
def travel(string):
index = 0
while index < len(string):
letter = string[index]
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
知止内明 博主文章分类:python学习笔记 ©著作权
遍历列表
def travel(string):
index = 0
while index < len(string):
letter = string[index]
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
上一篇:java启动dos命令收集笔记二
下一篇:Mac Appium环境安装
计算机新手的 git 学习记录
计算机新手笨方法学习C语言的博客记录
python 学习手册 第四章 《 介绍 python 对象类型》
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M