try: r = requests.get(url, params={'s': thing}) except requests.ConnectionError, e: print e #should I also sys.exit(1) after this?
它是否正确?有没有更好的方法来构建它?这会涵盖我的所有基础吗?
python request python-requests
python ×1
python-requests ×1
request ×1