摘要: Python 三种读文件方法read(), readline(), readlines()及去掉换行符\n 首先, 让我们看下数据demo.txt, 就两行数据. 35durant teamGSW 1. read() with open("demo.txt", "r") as f: data = f 阅读全文
posted @ 2021-02-21 11:24 菜鸟阿呆 阅读(1775) 评论(0) 推荐(0) 编辑