所以,我想在Python上处理XML文件。 我使用minidom,因为我在Python 2.1中,并且没有更改到3.6。目前,我有这个 import xml.dom.minidom as minidom
import socket
print 'Getting the xml file'
# Get the xml contents
file = open('<filepath>')
#
我想用一些python-2.1代码来控制另一个程序(ArcGIS)。我使用的python版本是2.5。我在运行代码时收到以下错误消息。 <type'exceptions.ImportError'>: No module named win32api
Failed to execute (polyline2geonetwork2).
我试过安装pywin32-214.win32-py2.5.e