收起
def round_fun(x): d = x- int(x) if d<0.5: return int(x) else: return int(x+1) x = float(input()) print(round_fun(x))
按照题目要求貌似就是这样
报告相同问题?