```python def calculate_salary(hourly_wage, regular_hours, overtime_hours): regular_salary = hourly_wage * regular_hours overtime_salary = hourly_wage * 1.5 * overtime_hours total_salary = regular_salary + overtime_salary return total_salary hourly_wage = float(input("请输入时薪:")) regular_hours = float(input("请输入常规工作时间:")) overtime_hours = float(input("请输入加班工作时间:")) print(calculate_salary(hourly_wage, regular_hours, overtime_hours)) ``` [2025-05-08 14:22:54 | AI问答 | 147点数解答]