02 2021 档案

摘要:Python 字典的 items() 函数一列表返回可遍历的 (键, 值) 元组列表。 简单示例: dict = {'Name': 'Zara', 'Age': 7} print "Value : %s" % dict.items() 输出: Value : [('Age', 7), ('Name' 阅读全文
posted @ 2021-02-23 00:28 模糊计算士 阅读(903) 评论(0) 推荐(0) 编辑
摘要:转自:https://blog.csdn.net/csdn15698845876/article/details/73302450 1、简单解析 enumerate 翻译过来是枚举的意思,看下它的方法原型: enumerate(sequence, start=0),返回一个枚举对象。sequence 阅读全文
posted @ 2021-02-19 16:08 模糊计算士 阅读(112) 评论(0) 推荐(0) 编辑