Python读写文件
是个程序汪
这个作者很懒,什么都没留下…
展开
-
python用户登录注册 文件读写 指针运用
# -*- coding: utf-8 -*- from os.path import isfile class User: def __init__(self, username, passwd, file_info): self.user = username self.pwd = passwd self.file_db = file_info def file_oper(file, mode, *args): if原创 2020-12-07 18:39:28 · 159 阅读 · 0 评论 -
Python文件读写 小甲鱼学Python028文件:因为懂你,所以永恒20201005
文件读取小甲鱼原教学视频 小甲鱼原教学视频 >>> f = open('E:\\record.txt') >>> f <_io.TextIOWrapper name='E:\\record.txt' mode='r' encoding='cp936'> >>> f.read() '' >>> f.read() Traceback (most recent call last): File "<pyshell#3&原创 2020-10-05 18:01:28 · 200 阅读 · 3 评论