Output formatting in Python
From Phonlab
Jump to navigationJump to search
outputs = ( 'f1', '0.1f', 'f2', '0.2f', 'f3', '0.3f' ) head = '\t'.join(outputs[0:len(outputs):2]) fmt = '\t'.join(outputs[1:len(outputs):2])
outputs = ( 'f1', '0.1f', 'f2', '0.2f', 'f3', '0.3f' ) head = '\t'.join(outputs[0:len(outputs):2]) fmt = '\t'.join(outputs[1:len(outputs):2])