如何将变量放入geolocator.reverse()函数中?

2024-10-02 04:37:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我有lat1lng1集。当我尝试时:

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

当我在没有“,”的情况下尝试时,它会给我一个语法错误


Tags: inmostinput错误ipythonlocationcallreverse

热门问题