阅读背景:

html内容写入到文件中的时候出现‘TypeError: expected a character buffer object’错误

来源:互联网 

代码如下:

with open('ryf.md', 'a') as f:
	f.write(content)    # content是html内容
with open('ryf.md', 'a') as f:
	f.w



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: