相关疑难解决方法(0)

尝试/除了使用Python请求模块的正确方法?

try:
    r = requests.get(url, params={'s': thing})
except requests.ConnectionError, e:
    print e #should I also sys.exit(1) after this?
Run Code Online (Sandbox Code Playgroud)

它是否正确?有没有更好的方法来构建它?这会涵盖我的所有基础吗?

python request python-requests

345
推荐指数
4
解决办法
32万
查看次数

标签 统计

python ×1

python-requests ×1

request ×1