如何使用python在日历中突出显示今天的日期

2024-09-29 02:18:01 发布

您现在位置:Python中文网/ 问答频道 /正文

highlight current date in python using Calendar library. Below is my program.

import calendar
c = calendar.TextCalendar(calendar.MONDAY)
str = c.formatmonth(2018,1)
print (str)

Output


Tags: inimportdateismylibrarycurrentprogram