特牛生活网

Python OSError: [Errno 22] Invalid argument:的出现和解决_with open(path,"wb") as f: oserror: [errno 22] inv-CSDN博客

网友收藏
  • 链接地址:https://blog.csdn.net/xgocn/article/details/107486142
  • 链接标题:Python OSError: [Errno 22] Invalid argument:的出现和解决_with open(path,"wb") as f: oserror: [errno 22] inv-CSDN博客
  • 所属网站:blog.csdn.net
  • 被收藏次数:965
# -*- coding:utf8 -*-from chrome_spider import ChromeSpiderimport settingsfrom datetime import datetime"""author:power"""def write_to_file(path, data): with open(path, 'wb') as fs: fs.write(data.encode("utf8"))def run(url): ch..._with open(path,"wb") as f: oserror: [errno 22] invalid argument