Home > other >  python
python

Time:11-17

Read the Shared directory, when performing a python, a row in a TXT file content, OSError: [9] Errno Bad file descriptor error, simulates the many kinds of situations, an error or not, what reason is caused? How to solve? Error below

CodePudding user response:

Maybe it's a connection is broken, and a judge

CodePudding user response:

In the script have judgment

CodePudding user response:

You of the f (documents operator), before you readline estimation has shut down,

CodePudding user response:

Under the breakpoint to see if f is shut down,

CodePudding user response:

1. The connection is broken, refers to read the document at the time when network is broken read less than content?
2. (file f operator), before the readline estimation has been closed, there is the solution?