![見出し画像](https://assets.st-note.com/production/uploads/images/23288122/rectangle_large_type_2_0147a1ea3a6f1d8cd7553d25ba600218.jpeg?width=1200)
Python カレンダープログラム
importをしてカレンダーを作成して書き出しプログム。
勉強で作ってみました。写真の用に上手く書き出せました。
色々と試していきます。
日々成長してきます。
import calendar
lc = calendar.HTMLCalendar(calendar.SUNDAY)
body = lc.formatmonth(2020,4)
f =open("calendar202004.html","wt")
f.write("<body>"+body+"</body>")