最佳答案:在使用sum函数时,如果需要保留一位小数,可以使用round函数对sum函数的结果进行四舍五入,示例如下:sum_result = sum(numbers) # numbers为需要求和的数字列表re