Python的字典的items(), keys(), values()

来源:互联网 发布:淘宝如何解绑银行卡 编辑:程序博客网 时间:2024/05/29 14:34
>>> dict = { 1 : 2, 'a' : 'b', 'hello' : 'world' }>>> dict.values()['b', 2, 'world']>>> dict.keys()['a', 1, 'hello']>>> dict.items()[('a', 'b'), (1, 2), ('hello', 'world')]>>> 

原创粉丝点击