0
逗人我想获得源页面而不是在互联网,而在本地系统获得本地系统的Python源HTML
example : url=urllib.request.urlopen ('c://1.html')
>>> import urllib.request
>>> url=urllib.request.urlopen ('http://google.com')
>>> page =url.read()
>>> page=page.decode()
>>> page
什么是我的问题吗?
'c://1.html'不是一个有效的网址 –
我知道,但我需要在本地系统获得源 – aliweb
http://en.wikipedia.org/wiki/File_url – Hypuk