标签:requests net 文件 通过 odi err coding open data
#!/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)
标签:requests net 文件 通过 odi err coding open data
原文地址:https://www.cnblogs.com/ymsong/p/12634430.html