作者: 艾文,计算机硕士学位,企业内训讲师和金牌面试官,公司资深算法专家,现就职BAT一线大厂。
邮箱: 1121025745@qq.com
博客:https://wenjie.blog.csdn.net/
内容:跟艾文学编程《零基础入门学Python》

open 函数语法:
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
- Character Meaning
- --------- ---------------------------------------------------------------
- 'r' open for reading (default)
- 'w' open for writing, truncating the file first
- 'x' create a new file and open it for writing
- 'a' open for writing, appending to the end of the file if it exists
- 'b' binary mode
- 't' text mode (default)
- '+' open a disk file for updating (reading and writing)
- 'U' universal newline mode (deprecated)
- ========= ===============================================================
write 语法:
- write(text, /) method of _io.TextIOWrapper instance
- Write string to stream.
- Returns the number of characters written (which is always equal to
- the length of the string).

read 语法:
- Help on built-in function read:
-
- read(size=-1, /) method of _io.TextIOWrapper instance
- Read at most n characters from stream.
-
- Read from underlying buffer until we have n characters or we hit EOF.
- If n is negative or omitted, read until EOF.

JSON(JavaScript Object Notation) 是一种轻量级数据交互格式。
提供两种数据格式函数: json.dumps() 和 json.loads



后续可以通过pandas 来完成






