发布时间:2019-08-15 10:00:44编辑:auto阅读(2134)
遍历列表
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之——调用python方法
下一篇: python基础6
51559
51132
41656
38411
32901
29875
28593
23553
23484
21829
1980°
2681°
2244°
2175°
2622°
2193°
2940°
4865°
4699°
3345°