principal=float(input("请输入存款本金:"))rate=float(input("请输入年利率(如0.05代表5%):"))years=int(input("请输入存款年数:"))periods=int(input("请输入计息周期的数量:"))total_amount=calculate_compound_interest(principal,rate,years,periods)print("复利总额:",total_amount) 1. 2. 3. 4. 5...