Skip to content

wppLog/read_write_method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一个关于所有格式文件读取的方法

1。 问题描述:

各种各样的文件格式,读写操作非常的麻烦,能够有一种方法,可以整合所有格式的文件,方便用户进行读取和写入。

2。 个人的努力:

将所有的文件读取进行抽象封装,只提供统一的读写接口,供用户调用。 当前支持一下格式的文件,后续会不断的添加。

2-1 txt文件:

常见的文本文件的存储方式,以段落('\n')为单位进行划分

2-2 xlsx文件:

excel的表格形式

2-3 csv文件:

excel表格形式

2-4 json文件:

字典形式存放

3。 快速体验:

operate_file.py 文件中的 main, 提供了一个简单的测试用例

4。 代码结构:

operate_file.py 提供统一的读写接口
handle_method 文件夹 提供 相对应的读写方法

5。 后记:

希望有缘的小伙伴,提出建议,一起合作和努力。个人邮箱: 1652772472@qq.com

About

Read files in various types of formats

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages