试图得到这个的工作版本
完全按照引用的代码使用,我收到以下错误:
Traceback (most recent call last):
File "<pyshell#26>", line 1, in <module>
ppoint()
File "<pyshell#24>", line 9, in ppoint
s1a = s1.Shapes[0].TextFrame.TextRange
File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 465, in __getattr__
raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr))
AttributeError: '<win32com.gen_py.Microsoft PowerPoint 14.0 Object Library.Shapes instance at 0x36209528>' object has no attribute '__getitem__'
Win32com 导入正常 - 任何想法都非常感谢!