Initial commit: Python learning project with examples and exercises

This commit is contained in:
2025-07-20 17:08:50 +08:00
commit bc7bb56271
111 changed files with 11535 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
rate = 0.001
jia = 1+rate
jian = 1-rate
day = 1.0
for i in range(365):
if i % 7 in [6,0]:
day = day*jia
else:
day = day*jian
print("{:.2f}".format(day))