摘要: 写入文件的不只是文本,还有二进制等,字节流是什么样式关系到能否写入文件。 以获取网页写入文件操作示例: response = requests.get("http://www.baidu.com") print(response.encoding) print(response.text) # 文本 阅读全文
posted @ 2019-04-12 23:22 马克图 阅读(2121) 评论(0) 推荐(0) 编辑