2024-09-30 03:22:40 发布
网友
我可以从浏览器访问网页,但当以编程方式访问网页时,它不起作用
我试过用quote#u plus表示#k=#s
urlpage = 'https://www.dnp.gov.co/CONPES/documentos-conpes/Paginas/documentos-conpes.aspx#k=#s=11' print(urlpage) html = urlopen(urlpage)
在Python3.x中,使用webbrowser模块从程序中打开webbrowser中的Web链接:
import webbrowser urlpage = "https://www.dnp.gov.co/CONPES/documentos-conpes/Paginas/documentos-conpes.aspx#k=#s=11" html = webbrowser.open(urlpage)
在Python3.x中,使用webbrowser模块从程序中打开webbrowser中的Web链接:
相关问题 更多 >
编程相关推荐