我的笔记本电脑和github上存储了一个geojson文件。我从笔记本电脑上读取文件没有问题:
obj = r'Teacher Quality Gap - Washington\Geo\1988\experience_gap_bins_0.102-0.805.geojson'
with open(obj) as f:
geo = json.load(f)
但是当我从github读到这封信时,我得到了OSError
。
base_url = 'https://raw.githubusercontent.com/otteheng/Teacher-Quality-Gaps-Dash/master/'
year = '1988'
binz = 'experience_gap_bins_0.102-0.805'
with open(base_url + year + '/' + binz + '.geojson?_sm_au_=iMV8R4JMtDJsZNt2') as f:
geo = json.load(f)
我做错了什么?我在Windows上使用Python 3.6。