So verwenden Sie die Prettify -Funktion in Python

print(doc.prettify())
# Here doc is an HTML file that I want to prettify
Prashasti Gupta