Write Python object attributes to a single text file

المشرف العام

Administrator
طاقم الإدارة
I would like to create a "metadata" file for several Python objects I have built and was wondering if there was an elegant way to write a subset of these attributes to a .txt file. Ideally, the .txt file would have the following formatting:

object.Name = thisistheobjectname object.Value = thisistheobjectvalue etc...

Many thanks,

Emily



أكثر...
 
أعلى