#-*-coding:utf-8-*-# 假設一年期按期利率爲3.25%,計算一下須要過多少年,一萬元的一年按期存款連本帶息能翻番?(編程題)# count = 0# num = 10000# while num <= 20000:# count += 1# num = num + num * 0.0325# print(count)