取近似值——python3解法
取近似值
http://www.nowcoder.com/questionTerminal/3ab09737afb645cc82c35d56a5ce802a
str1 = input().split('.') if str1[1] and int(str1[1][0])>=5: print(int(str1[0]) + 1) else: print(int(str1[0]))
取近似值
http://www.nowcoder.com/questionTerminal/3ab09737afb645cc82c35d56a5ce802a
str1 = input().split('.') if str1[1] and int(str1[1][0])>=5: print(int(str1[0]) + 1) else: print(int(str1[0]))
相关推荐