Skip to content

Commit

Permalink
chore: 小工具打印日期
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 12, 2025
1 parent 50f0412 commit 9a3228f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def monthly_bill(year: int, month: int):
plt.title(f"{year}-{month} daily amount")
plt.xlabel("Day")
plt.ylabel("Amount")
plt.xticks(range(0, 24 * days, 24), range(1, days + 1))
plt.xticks(range(0, 24 * days, 24), [f"{month}-{day}" for day in range(1, days + 1)])

# 把 daily_amount 打上去
for day, amount in enumerate(daily_amount):
Expand Down

0 comments on commit 9a3228f

Please sign in to comment.