摘要: d = { 'name':'jake', 'age': 9, 'grade':5,}print(d.get('name')) # get 读取字典K对应值的方式print(d.keys()) # 读取所有K值print(d.values()) # 读取所有的Value值print(d.items() 阅读全文
posted @ 2020-08-11 21:20 KK-KING 阅读(86) 评论(0) 推荐(0) 编辑
摘要: a = (1, 2, 3) b = [1, 2, 3], c = 1, print(a, type(a)) print(b, type(b)) print(c, type(c)) (1, 2, 3) <class 'tuple'>([1, 2, 3],) <class 'tuple'>(1,) <c 阅读全文
posted @ 2020-08-11 20:39 KK-KING 阅读(299) 评论(0) 推荐(0) 编辑