python read file starting from second line

python starts reading the file from the second line

filename = info.txt
f = open( 'info.txt' )
next(f)
for line in f:
print(line)

next() function gets the data of the first line, but not do any action. In this way, the subsequent FOR loop reads and executes directly from the second line.

Guess you like

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