python基本数据类型
实例三:天天向上的力量
3-1
#天天向上的力量.py
import math
dayup = math.pow((1.0 + 0.001), 365) # 每天提高0.001
daydown = math.pow((1.0 - 0.001), 365) # 每天荒废0.001
print("向上: %.2f, 向下: %.2f."%(dayup, daydown))
3-2
#天天向上的力量.py
import math
dayup = math.pow((1.0 + 0.005), 36
原创
2022-05-06 15:11:03 ·
909 阅读 ·
0 评论