This topic mainly explains how to delete Word Data in tables in documents .
Deletion of cell data is essentially the same as assignment , It's just that the assignment is an empty string , namely ’'. There are also two ways to delete cell data , One is direct cell.text The assignment is an empty string , Another way is to use paragraphs , Paragraphs text Attribute is assigned an empty string .
Example :
(1) In the project Code In the directory , stay Code New under the directory clearTable01.py file .
(2) Enter the code as follows :
clearTable01.py
fro