将文件读取到字符串中 str = f.read() #按行读取文件1: f = open("file.txt","r") #设置文件对象 line = f.readline() line = line[:-1] while line: ...
確定! 回上一頁