Skip to content

Instantly share code, notes, and snippets.

@wynnzen
Created May 5, 2014 02:38
Show Gist options
  • Save wynnzen/746b00a0d045e2d6869c to your computer and use it in GitHub Desktop.
Save wynnzen/746b00a0d045e2d6869c to your computer and use it in GitHub Desktop.
格式化浮点位数输出
float("%.2f" %value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment