Python advanced (1): file operation

file operation

Here we will learn how Python operates on files, mainly introducing file opening and file reading and writing.

1. Access files
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

2. Operation file
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

3. Read and write files
insert image description here
insert image description here
insert image description here
![Insert picture description here](https://img-blog.csdnimg.cn/20210306222155909.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3p4eHhsaDEy Mw==, size_16, color_FFFFFF, t_

insert image description here![Insert picture description here](https://img-blog.csdnimg.cn/20210306222221438.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3p4eHhsaDEy Mw==, size_16, color_FFFFFF, t_

insert image description here
insert image description here

insert image description here

insert image description here

** It is not easy to sort out the courseware. I think the content of the course is good when I pass by. Please help to like and bookmark it! Thanks♪(・ω・)ノ****If you need to reprint, please indicate the source.

Guess you like

Origin blog.csdn.net/zxxxlh123/article/details/114460109