pprint.pformat
print(get_column_letter(sheet.max_column)+str(sheet.max_row))
cats = [{'name':'Zophie','desc':'chubby'},{'name':'Pooka','desc':'fluffy'}]
pprint.pformat(cats)
print('Write result.....')
resultFile=open('myCats.py','w')
resultFile.write('cats='+pprint.pformat(cats)+'\n')
resultFile.close()
# 导入
import myCats
print("cats:",myCats.cats)
print("cats[0]:")
print(myCats.cats[0]) # {'desc': 'chubby', 'name': 'Zophie'}
print("cats[0].name")
print(myCats.cats[0]['name']) # Zophie