SoFunction
Updated on 2024-10-30

python reads each line of TXT and saves it to LIST.

The text is as shown:

python读取TXT每行,并存到LIST

Python:

import sys
result=[]
with open('','r') as f:
 for line in f:
 (list(('\n').split(',')))
print(result)

Results:

python读取TXT每行,并存到LIST

The above this python read TXT each line, and save to the LIST is all I have shared with you, I hope to give you a reference, and I hope you support me more.