# Apps

### *class* Apps

A collection of all `app` objects:

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

#### *property* active *: [App](app.md#xlwings.App) | None*

返回活动的app。

#### Versionadded
在 0.9.0 版本加入.

#### add(\*\*kwargs)

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

* **返回类型:**
  [*App*](app.md#xlwings.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.

#### Versionadded
在 0.30.2 版本加入.

#### *property* count *: int*

返回app的总数。

#### Versionadded
在 0.9.0 版本加入.

#### keys()

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

#### Versionadded
在 0.13.0 版本加入.

* **返回类型:**
  *list*[*int*]
