摘要: 1. dir(object), return the attributes of the object 2. obj.__dict__ , return the attributes of a object 阅读全文
posted @ 2019-04-26 14:21 redstar9451 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 模式 可做操作 若文件不存在 是否覆盖 r 只能读 报错 - r+ 可读可写 报错 是 w 只能写 创建 是 w+ 可读可写 创建 是 a 只能写 创建 否,追加写 a+ 可读可写 创建 否,追加写 阅读全文
posted @ 2019-04-26 12:02 redstar9451 阅读(95) 评论(0) 推荐(0) 编辑