题解 | #取近似值#
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
笨办法
str1 = float(str)
str2 = int(str1)
if (str1-str2)>=0.5:
print(str2+1)
else:
print(str2)
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
笨办法
str1 = float(str)
str2 = int(str1)
if (str1-str2)>=0.5:
print(str2+1)
else:
print(str2)
相关推荐
码农索隆:以下是我以我微薄的认知提供的建议:
1.考个教师资格证,去当体育考试。
2.去健身房当健身教练(因为在我印象里面体育生身材都不错