摘要: 字典的内置方法 1 dic={'username':"kevin",'age':18} 2 # 定义空字典 3 d = {} 4 # info=dict(username='kevin',age=18) 5 # print(info) 6 7 #1.支持key取值 8 new_dic=dic['us 阅读全文
posted @ 2023-05-22 19:37 Py玩家 阅读(24) 评论(0) 推荐(0)