小编Sre*_*nth的帖子

将文件路径转换为 ​​URL

path = 'C:\\rough\\3010999\\CRESCENDO\\Speaker\\HATS_BA_crescendo__2018-05-31_18-33.html'\n
Run Code Online (Sandbox Code Playgroud)\n\n

无法通过 open 和 urllib.urlopen 打开文件\n尝试过 \n urlparse.urljoin(\n 'file:', urllib.pathname2url(path))\nfodler 的编码number如下\xef\xbf\xbd0999

\n\n

帮助打开文件并读取内容..\n提前致谢...

\n

python urllib python-2.7 python-requests

4
推荐指数
1
解决办法
3820
查看次数

标签 统计

python ×1

python-2.7 ×1

python-requests ×1

urllib ×1