Apps

class Apps(impl)

是所有 app 对象的集合:

>>> import xlwings as xw
>>> xw.apps
Apps([<Excel App 1668>, <Excel App 1644>])
property active

返回活动的app。

Added in version 0.9.0.

add(**kwargs)

创建一个新的App。这个新的App会变成活动app。返回这个App对象。

cleanup()

Removes Excel zombie processes (Windows-only). Note that this is automatically called with App.quit() and App.kill() and when the Python interpreter exits.

Added in version 0.30.2.

property count

返回app的总数。

Added in version 0.9.0.

keys()

提供一组PID,它们是App集合中各个Excel实例的键名。

Added in version 0.13.0.