#!/usr/bin/python #encoding:utf-8 import requests url = ‘https://climate.northwestknowledge.net/TERRACLIMATE-DATA/TerraClimate_vpd_‘ + str(year) + ‘.nc‘ file = "E:/PostDoc/Data/TEM/TerraClimate_vpd_" + str(year) + ‘.nc‘ r = requests.get(url) with open(file, "wb") as code: code.write(r.content)
原文地址:https://www.cnblogs.com/ymsong/p/12634430.html
时间: 2024-10-21 06:48:19