
- self.url = os.path.abspath('.').replace("\\","/") + r'/youer_file_path/filename.html'
这样写 linux 是读不到文件 按道理说 路径转成 / 是可以的 但是就是读取不到
解决方案:
- self.url = "file://" + os.path.join(os.getcwd(), "you_file_path/filename.html")
评价
排名
32
文章
20
粉丝
4
评论
15
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术
尘叶心繁