ValueError Traceback (most recent call last) Cell In[1], line 31 28 return reimbursement 30 # 计算住院费用报销金额 —> 31 reimbursement_amount = calculate_reimbursement(hospitalization_cost) 32 reimbursement_amount
Cell In[1], line 22, in calculate_reimbursement(cost) 20 reimbursement = 0 21 for limit, rate in payment_rates.items(): —> 22 lower, upper = map(int, limit.split(‘-’)) 23 if cost > upper: 24 reimbursement += (upper - lower) * rate
ValueError: invalid literal for int() with base 10: ‘1.5万’