Linux environment, the following figure 1 operation error, change to figure 2 form, in windows will not report an error, running well, the reason remains to be explored!
ValueError: Mixing iteration and read methods would lose data
lines = fr.readline ()
for line in lines[1:]
For large documents, read them line by line to extract the desired part to prevent too much memory and insufficient memory;
Read More:
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- Pandas read_ Error in json() valueerror: training data
- Java – read all the files and folders in a certain directory and three methods to get the file name from the file path
- Click the button to use in the react project window.open Methods open a new page and click the data again
- Unable to read meta data for class
- Quirky error 18: transfer closed with outstanding read data rem
- Jetson nano uses Python to read and parse GPS data (GPRMC, gpgga).
- During the development of vue, v-for reported an error [vue/require-v-for-key] Elements in iteration expect to have’v-bind:key’ directives.
- C + + programming fault handling — error: assignment of read only data member ‘STD:: pair
- java.lang.IllegalStateException : unable to read meta data for class
- Depending on the custom component jar package, unable to read meta data for class appears after startup
- Interesting undefined columns selected from read.table and read.csv
- Add a new springboot, and it will appear unable to read meta data for class when it is dependent
- Inconsistency between adapter data and UI data after dragging recyclerview (data disorder)
- circuit_breaking_exception,“reason“:“[parent] Data too large, data for [<http_request>]
- Data analysis to obtain Yahoo stock data: some problems are encountered when using panda datareader (cannot import name ‘is_ list_ Like ‘problem)
- Django + jQuery get data in the form + Ajax send data
- Several methods of deleting all empty lines in text under Linux
- Several common methods of inserting pictures into latex documents
- No supported authentication methods available