编程语言
首页 > 编程语言> > Day9_100 days of python coding

Day9_100 days of python coding

作者:互联网

Positional & keyword Arguments

Positional argument:

cuz we didn't specify anywhere which particular parameter we want to associate these datas with

在解决实际问题的时候,用round()不能解决

像1.2,实际上我们需要2而不是1

python - How do you round UP a number? - Stack Overflowicon-default.png?t=L9C2https://stackoverflow.com/questions/2356501/how-do-you-round-up-a-number解决问题的方法如上

import math
print(int(math.ceil(4.2)))

奇数:Prime number 

标签:do,python,coding,number,Positional,100,round,math
来源: https://blog.csdn.net/Xiaoyu0224/article/details/120962207