获取您的
自有 Python
服务器
×
更改方向
更改主题,深色/浅色
转到 Spaces
import requests url = 'https://w3schools.com/images/pulpit.jpg' #allow the response to be streamed by setting the 'stream' parameter to True: x = requests.get(url, stream=True) print(x.status_code)
200