摘要: '''文件读取'''# python通过内置open()方法打开文件,若文件存在,则打开并进行读取操作,# 否则创建文件,相关参数有w, w+, a, a+if "hello.txt" is True: # 文件打开时,指定编码方式 file = open("hell.txt",'r',encodi 阅读全文
posted @ 2020-07-01 08:43 人生只若初相见 阅读(217) 评论(0) 推荐(0)