[python]小技巧 2个列表生成字典

keys = ['name', 'age', 'food']
values = ['Monty', 42, 'spam']
dictionary = dict(zip(keys, values))
print(dictionary)  # {'name': 'Monty', 'age': 42, 'food': 'spam'}

给TA充电
共{{data.count}}人
人已充电
编程

[git]如何删除历史版本

2023-6-21 17:45:04

编程

[python]小技巧 获取列表中间的元素

2023-6-24 2:51:12

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
今日签到
搜索