会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
阳光宝贝-沐沐
首页
新随笔
管理
2019年3月8日
随性练习:python字典实现文本合并
摘要: 主要用到,字典、字符串分割和连接、文件等操作例如;有以下两个txt文本,要合并成一个代码:address_book1 = {}address_book2 = {}def read_address(): ''' read content from txt :return ''' with open("address1.txt","r") as f1: ...
阅读全文
posted @ 2019-03-08 21:50 阳光宝贝-沐沐
阅读(302)
评论(0)
推荐(0)
编辑