网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

write() argument must be str, not bytes

时间:2024-10-12 07:04:15

1、之前文件打开的语句是:pageFile= open(‘XXX’, 'w')的形式,如下图所示

write() argument must be str, not bytes

3、然后你再运行,将不会出现任何错误了,如下图运行结果显示

write() argument must be str, not bytes
© 一点资料