Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created April 24, 2020 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Celia-code/aead110357c23503afa2c7bd75aef963 to your computer and use it in GitHub Desktop.
Save Celia-code/aead110357c23503afa2c7bd75aef963 to your computer and use it in GitHub Desktop.
數值
# 四捨五入
# round(num[, n])
# ,n 表示四捨五入的位數(可以省略)
p = 3.14159
print(round(p, 2))
#打印出3.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment