2024-06-26 14:37:23 发布
网友
path = 'C:\rough\3010999\CRESCENDO\Speaker\HATS_BA_crescendo__2018-05-31_18-33.html'
无法通过打开和打开文件urllib.urlopen 尝试 urlparse.urljoin('file:', urllib.pathname2url(path)) 带有number的fodler编码方式与�0999相似
urlparse.urljoin(
'file:', urllib.pathname2url(path))
number
�0999
帮助打开文件并读取内容。。 提前谢谢。。。在
使用urllib.urlopen读取URL。在
urllib.urlopen
下面的例子应该行得通
res = urllib.urlopen(urlparse.urljoin('file:', urllib.pathname2url(path))) print res.read() # Should print entire file content
使用
urllib.urlopen
读取URL。在下面的例子应该行得通
相关问题 更多 >
编程相关推荐