Here is an example using with statement to read all lines of a file. with open(filename,'r') as fh all_lines = fh.readlines(). We can also use ...
確定! 回上一頁