python f string thousand separator

59

python f string thousand separator -

'{:,}'.format(20000)  # For Python ≥2.7
f'{20000:,}'  # For Python ≥3.6

Comments

Submit
0 Comments