Does anybody know if it is possible to avoid the error ValueError: zero length field reading/writing from/to a file with Python 2.6.6 as specified in the following: File 'format.p
Solution 1:
Change
"{:<{width}}".format(col, width=widths[index])
into
"{0:<{1}}".format(col, widths[index])
Coz in older release of python, you need to point out the order of multiple format field.
Share
Post a Comment
for "Valueerror: Zero Length Field Name In Format With Read And Write"
Post a Comment for "Valueerror: Zero Length Field Name In Format With Read And Write"