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 Overflowhttps://stackoverflow.com/questions/2356501/how-do-you-round-up-a-number解决问题的方法如上
import math
print(int(math.ceil(4.2)))
奇数:Prime number
共有 0 条评论