我想从互联网上下载图片并编写了无法正常工作的代码 想知道我哪里出了错
import random
import urllib.request
def web_image (url):
name = random.randrange(1, 1000)
full_name = str(name)+"jpg"
urllib.request.urlretrieve(url,full_name)
web_image("https://images.pexels.com/photos/67636/rose-blue-flower-rose- blooms-67636.jpeg?auto=format%2Ccompress&cs=tinysrgb&dpr=1&w=500")