不知道语言环境
'{:,}'.format(value) # For Python ≥2.7f'{value:,}' # For Python ≥3.6区域感知
import localelocale.setlocale(locale.LC_ALL, '') # Use '' for auto, or force e.g. to 'en_US.UTF-8''{:n}'.format(value) # For Python ≥2.7f'{value:n}' # For Python ≥3.6


