base_hum_num = 3120324986
year_day_num = 24 * 3600 * 365
death_hum_num = year_day_num // 13
birth_hum_num = year_day_num // 7
new_hum_num = year_day_num // 45
# print(year_day_num)
calc_hum_num = birth_hum_num + new_hum_num - death_hum_num
print("Test calculate The one year human chance number of base %d" % calc_hum_num)
# 第1年的人口应该为基础人口+增长人口,逐年相乘
for i in range(1, 7):
base_hum_num = base_hum_num + birth_hum_num + new_hum_num - death_hum_num
print(f"{i}th year human number is total {base_hum_num}")
## 1.11题人口基础数是10位数,到这里怎么变成了9位数,好吓人
## 最后的结果
这里其实也可直接相乘。但我没有,而是继续用了2.21里的公式方式。