会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
O_Din
博客园
首页
新随笔
联系
订阅
管理
2019年1月2日
python 字典的用法
摘要: 1. 创建一个空字典 dict = {} 2. 判断字典中有无目标索引 if a in dict 3. 字典中索引的值加一 dict['a'] = dict.get('a', 0) + 1 4. 将字典写入csv文件 writer = csv.writer(csvfile) for key, val
阅读全文
posted @ 2019-01-02 22:16 O_din
阅读(445)
评论(0)
推荐(0)
编辑
公告