3 ms·
I switch back and forth between format and %, and never use locals in the format. It's annoying, every time a string is written, to try to decide which way is b
by ant6n 11y ago
I switch back and forth between format and %, and never use locals in the format. It's annoying, every time a string is written, to try to decide which way is better for this instance.
That said, is there a way to do ('%.3f' % x) with this?
- JoshTriplett 11y agof'{x:.3f}'