#-*-coding:utf-8-*-# 假设一年期定期利率为3.25%,计算一下需要过多少年,一万元的一年定期存款连本带息能翻番?(编程题)# count = 0# num = 10000# while num <= 20000:# count += 1# num = num + num * 0.0325# print(count)