摘要: 知识点: zip() 函数用于将可迭代的对象作为参数,将对象中对应的元素打包成一个个元组,然后返回由这些元组组成的列表 li=[3,4,5] t=(7,8,9) print(list(zip(li,t))) print(dict(zip(li,t))) 运行截图: 例1: def f(a,b): p 阅读全文
posted @ 2023-08-24 11:15 人生努力努力努力就好 阅读(20) 评论(0) 推荐(0)