Last active
July 8, 2021 13:27
-
-
Save ayu-mushi/e5794757d983f54b46e05c80574f960a to your computer and use it in GitHub Desktop.
起床時刻を入力するとご飯の時間や就寝時間を教えてくれるスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
#print(datetime.now().time().second) | |
kisyo = int(input("起床時刻: ")) | |
# 朝ご飯 | |
print("朝ご飯:",(kisyo+1)%24, "時") | |
# 昼ご飯 | |
print("昼ご飯:",(kisyo+3)%24, "時") | |
# 夜ご飯 | |
print("夜ご飯:",(kisyo+10)%24, "時") | |
# 睡眠 | |
print("睡眠:",(kisyo+16)%24, "時") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment