Python <built-in method items of dict object at 0x0000000002B6C8C8> 问题解决
来源:互联网 发布:手机淘宝投诉流程 编辑:程序博客网 时间:2024/06/09 09:06
在把字典类型转换为list类型时遇到问题:
<built-in method items of dict object at 0x0000000002B6C8C8>
相应代码为:
print a.values()
后发现是因为这样做只是返回一个“循环体 iter”, 你需要把它们显示出来需要用
print list(a.values())
0 0
- Python <built-in method items of dict object at 0x0000000002B6C8C8> 问题解决
- Python built-in function - ascii(object)
- Python built-in types - repr(object)
- Python中 dict.items() dict.iteritems()区别
- Python中 dict.items() dict.iteritems()区别
- Python中 dict.items() dict.iteritems()区别
- Python dictionary items() Method
- the usage of dict in python
- the built-in function of range() in python
- the built-in function of eval() in python
- the built-in function of reduce in python
- Python Dict -> Object
- Python Built-in Functions
- Python Built-in Exception
- Python Built-in Funcitons
- Python built-in functions
- Python built-in 函数
- Python -- Built in functions
- MyBatis和Hibernate相比,优势在哪里?
- Codeforces Round #245 (Div. 1) B. Working out(DP)
- 关于if 与return
- C++ Block(代码块)
- Android触摸屏事件派发机制详解与源码分析三(Activity篇)
- Python <built-in method items of dict object at 0x0000000002B6C8C8> 问题解决
- 动态规划 最长上升子序列(LIS)
- MD5Encoding编码工具类
- TextView自定义不同颜色
- 安全方面
- C/C++与Lua互调案例
- 八、多WebApps与多mysql的集成
- excel导入
- centOS安装pip