小编sha*_*see的帖子

如何在python中打开一个url

import urllib

fun open():
    return urllib.urlopen('http://example.com')
Run Code Online (Sandbox Code Playgroud)

但是当example.com打开时,它不会渲染css或js.如何在Web浏览器中打开网页?

@error(404)
def error404(error):
    return webbrowser.open('http://example.com')
Run Code Online (Sandbox Code Playgroud)

我正在用瓶子.给我错误:TypeError("'bool' object is not iterable",)

python bottle

68
推荐指数
5
解决办法
26万
查看次数

标签 统计

bottle ×1

python ×1