python
Knight.Panda
ᕕ(˵•̀෴•́˵)ᕗ上分吗
展开
-
python (选学) zip,列表
假装会python ## 暂时还不懂先存着 zip list(zip(['a', 'b', 'c'], [1, 2, 3])) 将输出 [('a', 1), ('b', 2), ('c', 3)]. letters = ['a', 'b', 'c'] nums = [1, 2, 3] for letter, num in zip(letters, nums): prin...原创 2019-10-15 22:41:03 · 564 阅读 · 0 评论 -
循环 python 的语法记录ε=(´ο`*)))唉
(假装自己会python loop for # iterable of cities cities = ['new york city', 'mountain view', 'chicago', 'los angeles'] # for loop that iterates over the cities list for city in cities: print(city.tit...原创 2019-10-15 22:11:19 · 942 阅读 · 0 评论