file instruction set

1. Dinosaur, right, print(a.closed()), whether the memory is released

2. You can, print(a.encoding()), the encoding method of this file

3. Serve the teacher, a.flush(), and save it on the hard disk regularly

4. Too, print(a.tell()), total bytes

5. Thinking, a.seek (number), the position where the cursor moves

6. Wear it, a.truncate(number), get all characters before the number

Guess you like

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