Home > other >  PYTHON always prompt the indentation has a problem
PYTHON always prompt the indentation has a problem

Time:10-06

The import docx
The from docx import Document
The import tkinter as tk
The from tkinter import filedialog
The import OS
Path=filedialog. Askdirectory ()
Name=OS. Listdir (path + '/')
For I in name:
If OS. Path. Isfile (I)==False:
Docx=Document ('/' path + + I + I + + '/' '_ grassland counterpoising truly MuHu information collection table. Docx')
Table=docx. Tables
Tb1=table [0]
The run=tb1. The cell (2, 6). Paragraphs. [0] add_run (tb1. The cell (2, 6). The text)
The run. The font. The name=(' BZDBT)
The run, the font size=140000
Tb1. The cell (2, 6). Paragraphs [0]. Alignment=WD_PARAGRAPH_ALIGNMENT. CENTER
Docx. Save ('/' path + + I + I + + '/' '_ grassland counterpoising truly MuHu information collection table. Docx')
Print (' success to modify a ')
The else:
Print (' is not a file);;;; Has always been in the previous tip indentation error,,,,
  • Related