Python-文件-读取整理 2022-01-17 Python►基础 待补充 0 评论 字数统计: 26(字) 阅读时长: 1(分) 1 按行读取文本文件 1234file_path = 'xxx'with open(file_path) as f: for line in f.readlines(): print(line) open详解