How to read a specific range of lines in an external file in python?

前端 未结 3 658
醉梦人生
醉梦人生 2021-01-22 05:07

Lets say you have a python file with 50 lines of code in it, and you want to read a specific range lines into a list. If you want to read ALL the lines in the file, you can just

3条回答
提交回复
热议问题