题解 | #生成字典#

生成字典

https://www.nowcoder.com/practice/f3b6bfd4a411431b96f08bd153a51659

name_list = input().split()
language_list = input().split()

info_dict = dict(zip(name_list, language_list))
print(info_dict)

参考https://www.runoob.com/python3/python3-func-zip.html

使用dict()转换来输出字典

#Python学旅#
全部评论

相关推荐

点赞 评论 收藏
分享
02-11 17:51
腾讯_TEG_技术
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务