python 的实用技巧
2015-03-17 11:08
190 查看
获取本地的所有python模块
python
>>>help("modules")
2. 获取字典dict的前10个items:
dict.items()[:10]
3. 获取字典的keys,values和items:
dict.keys()
dict.values()
dict.items()
python
>>>help("modules")
2. 获取字典dict的前10个items:
dict.items()[:10]
3. 获取字典的keys,values和items:
dict.keys()
dict.values()
dict.items()
相关文章推荐
- Python实用技巧-成为Pythoner必经之路
- 【收藏】Python实用技巧-成为Pythoner必经之路
- Python中字典创建、遍历、添加等实用操作技巧合集
- Python 数据处理:Pandas 模块的 12 种实用技巧
- Python 实用技巧
- Python实用技巧-成为Pythoner必经之路
- Python初学者实用技巧
- python实用技巧(三)
- Python中字典创建、遍历、添加等实用操作技巧合集
- 总结python爬虫抓站的实用技巧
- 实用python技巧
- Python实用技巧-成为Pythoner必经之路
- Python实用技巧-成为Pythoner必经之路
- python实用技巧(一)
- 初学Python实用技巧两则
- Python实用技巧
- Python实用技巧---列表推导式(轻量级循环)与map
- 【python系列】python编程中几个实用的技巧
- python实用技巧(四)
- Python 数据处理:Pandas 模块的 12 种实用技巧