Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您的代码中有一个拼写错误:
应该是
否则
cities
只是给出值'/Users/xxx/Desktop/Example/cities.shp'
这是... astr
所以你不能对其进行itertuples()
!这就是为什么复制粘贴是有风险的!You have a typo in your code:
should be
Otherwise
cities
is just given the value'/Users/xxx/Desktop/Example/cities.shp'
which is... astr
so you can'titertuples()
on it! That's why copy pastes are risky!