1

我正在使用 Python3.6.5 并安装了 simplekml 模块 1.3.3,但是当我运行下面的代码时出现错误消息;错误消息>>“kml = simplekml.Kml() AttributeError: 模块 'simplekml' 没有属性 'Kml'”

我正在使用来自https://pypi.org/project/simplekml/的示例代码

import simplekml
#from simplekml import Kml  # this line of code not working either.
kml = simplekml.Kml()
kml.newpoint(name="Kirstenbosch", coords=[(18.432314,-33.988862)])
kml.save("botanicalgarden.kml")
4

0 回答 0