摘要: #一、文件基础操作 读文本文件 1.打开文件 file_object = open('info.txt', mode='rt', encoding='utf-8') 2.读取文件内容,并赋值给data data = file_object.read() 3.关闭文件 file_object.clos 阅读全文
posted @ 2021-05-20 14:31 可爱的豆米 阅读(1657) 评论(0) 推荐(0)