def weight_converter(gram): total_weight = gram / 1000 return str(total_weight) + ‘KG‘ the_weight = weight_converter(3000) print(the_weight)
时间: 2024-10-11 21:38:01
def weight_converter(gram): total_weight = gram / 1000 return str(total_weight) + ‘KG‘ the_weight = weight_converter(3000) print(the_weight)