readlines() is a function in Python that helps us read all the lines ... f = open("file1.txt", "r") ex = file.readline() print(ex). Output:.
確定! 回上一頁