DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get line number x in file
f=open('filename') lines=f.readlines() print lines[25] print lines[29]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#line
#number
#file
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit