# Xóa chú thích PPT bằng Python

> Mã nguồn Python để xóa nhận xét bản trình bày PPT

Source: https://products.aspose.com/slides/vi/python-net/annotation/ppt/
Updated: 2023-04-18



## Xóa Nhận xét khỏi PPT qua Python

Để xóa chú thích khỏi tệp PPT, chúng tôi sẽ sử dụng [Aspose.Slides for Python via .NET](https://products.aspose.com/slides/vi/python-net/) API, một API giàu tính năng, API thao tác tài liệu mạnh mẽ và dễ sử dụng cho nền tảng Python.

### Xóa chú thích khỏi PPT - Python

```python

import aspose.slides as slides

with slides.Presentation("example.ppt") as presentation:
    # Deletes all comments from the presentation
    for author in presentation.comment_authors:
        author.comments.clear()

    # Deletes all authors
    presentation.comment_authors.clear()

    presentation.save("example_out.pptx", slides.export.SaveFormat.PPTX)
```

## Cách xóa nhận xét khỏi PPT bằng Python

Cài đặt **Aspose.Slides cho Python qua .NET**. Xem [**Cài đặt**](https://docs.aspose.com/slides/python-net/installation/).

Tải PPT với một thể hiện của lớp Trình bày

Lặp lại tất cả các Tác giả của PPT đã tải

Xóa tất cả Nhận xét của một tác giả

Xóa tất cả Tác giả ở cuối

## Các định dạng chú thích được hỗ trợ khác
