摘要: 读 with open( '/path/to/file', 'r' ) as f: print( f.read() ) 写 with open('/Users/michael/test.txt', 'w') as f: f.write('Hello, world!') 阅读全文
posted @ 2022-05-19 12:30 豆浆D 阅读(187) 评论(0) 推荐(0) 编辑