1、首先打开pycharm工具。
2、再点击file,创建python项目。
3、导入python的docx库。
4、接着创建document对象。
5、再创建table表格。
6、最后用text向表格输入数据。