我有lat1
和lng1
集。当我尝试时:
location = geolocator.reverse('lat1', 'lng1')
它给了我一个错误:
打字错误
Traceback (most recent call last)
<ipython-input-65-bef81ce5884b> in <module>
----> 1 location = geolocator.reverse('lat1', 'lng1')
TypeError: reverse() takes 2 positional arguments but 3 were given
当我在没有“,”的情况下尝试时,它会给我一个语法错误
您可以使用以下代码:
上面的代码将变量格式化为
.reverse()
方法的字符串相关问题 更多 >
编程相关推荐