First, open the file and read the file using readlines() . If you want to remove the new lines (' \n '), you can use strip() . Example 2: Using for loop and ...
確定! 回上一頁