Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created April 24, 2020 11:22
Embed
What would you like to do?
數值
# 四捨五入
# 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