摘要: 字典的内置方法 # 1.类型转换 转换1:dict1 = dict(['name','tony'],('age',18)) print(dict1) 输出结果: {'name':'tony','age':18} #fromkeys 会从元组中取出每个值当做key,然后与AA组成K:V放到字典中 转换 阅读全文
posted @ 2022-03-10 23:31 槐序八 阅读(38) 评论(0) 推荐(0)