An example of splitting “sample.txt” into a list is shown below: f = open(“sample.txt”, “r”) info = f.read() print(info.splitlines()) f.close().
確定! 回上一頁