Python学习笔记(二)

Python学习笔记(二) for循环遍历列表 #for循环遍历列表 friends=['lisa','jim','john'] for friend in friends: print(friend.title()) print("I like my friends!") 输出结果:app range数值列表的使用 #range数值列表的使用 for value in range(1,6
相关文章
相关标签/搜索