本篇文章主要介绍了" python 20171115学习记录",主要涉及到方面的内容,对于软件工程感兴趣的同学可以参考一下:
遍历列表def travel(string):index = 0while index < len(string):letter = string[ind...
遍历列表
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 20171115学习记录,包括了方面的内容,希望对软件工程有兴趣的朋友有所帮助。
本文网址链接:http://www.codes51.com/article/detail_4499219.html