文件的读取:
with open(input_path, "r") as input_file: #读取input_path这个文件,把这个文件流叫inputfile with open(output_path, "w") as output_file:#读文件里面的每一行
python 基本语句
原文:https://www.cnblogs.com/yttas/p/11237386.html