Python:将python2转换为python3

2024-10-04 05:34:48 发布

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

我正在尝试使用

https://github.com/iandees/mongosm/blob/master/insert_osm_data.py

这个包裹。它似乎是用Python2写的。我一路转换成了next(context)。然而,我得到了name 'long' is not defined

有什么方法可以让我在某个地方定义它吗?我如何定义“long”呢?我甚至不知道这对于Python2脚本(它在某种程度上工作得很好)有什么意义


Tags: pyhttpsgithubmastercomdata定义osm