错误讯息
ValueError: cannot switch from manual field specification to automatic field numbering
几乎说明了一切:您需要在任何地方提供明确的字段索引,并且
print('{0[0]:{1}s} {0[1]:{2}d} {0[2]:{3}f}'.format(res, 10, 5, .2))工作良好。

错误讯息
ValueError: cannot switch from manual field specification to automatic field numbering
几乎说明了一切:您需要在任何地方提供明确的字段索引,并且
print('{0[0]:{1}s} {0[1]:{2}d} {0[2]:{3}f}'.format(res, 10, 5, .2))工作良好。