Home > other >  Python read TXT text to the list
Python read TXT text to the list

Time:10-11

Such as my TXT file has three lines of digital number (not sure), separated with a space between each number, I would like to send this three lines respectively into the three list, and then use the elements in the list,
How to write??
Thank you, just learning what also don't know much about, reading practice is not I want results at

CodePudding user response:

Like my TXT file for
3
53, 54, 98
62 21 34
I want to use python read three line Numbers are the three lists for later sorting then use python thanks, save the children
  • Related