xxxxxxxxxx
from openpyxl import Workbook
# Open the workbook
workbook = Workbook()
sheet = workbook.active
# Select the cell
cell = sheet['A1']
# Set the text wrapping
cell.alignment = cell.alignment.copy(wrapText=True)
# Save the workbook
workbook.save('example.xlsx')