 1 # ケース1
 2 
 3 from datetime import datetime, date
 4 
 5 def case1():
 6     print('=== Start case1 ===')
 7 
 8     # 現在日時を取得
 9     dt = datetime.now()
10 
11     if dt.month == 10 and dt.day == 10:
12         print('誕生日おめでとう')
13 
14     if dt.month == 1 and dt. day == 1:
15         print('あけましておめでとう')
16 
17     if 6 <= dt.hour <= 8:
18         print('おはよう')
19 
20     if 22 <= dt.hour <= 24:
21         print('おやすみ')
22         
23     print('=== Finish case1 ===')
24 
25 
26 # メイン
27 if __name__ == "__main__":
28     case1()
