TypeError: 'str' object is not callable with win32com interfacing with Attachmate
问题 I'm using Python to try to automate Attachmate - EXTRA!, similar to how most do in VBA. I'm using the package pywin32 found here. I'm using the documentation of how OLE works with Attachmate (where both GetString and PutString methods can be found) here. My code: system = win32com.client.Dispatch("EXTRA.System") sess0 = system.ActiveSession product = sess0.screen.GetString(0, 1, 2) Produces the error: line13: product = sess0.screen.GetString(1, 1, 2) TypeError: 'str' object is not callable