file operation mode

aAppend mode

append in the back

cannot read

r+ read and write mode, continue to write after reading

Read first, then write

After writing, read() will not appear because the cursor has moved to the end

Equivalent to append

 

w+ write read mode, read after write

First create a new file, then write it in, then read it out, overwriting the old one

almost useless

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325554216&siteId=291194637