Last active
October 31, 2022 11:15
-
-
Save ayu-mushi/cb19d5f56d060eb6434781ad73f1e496 to your computer and use it in GitHub Desktop.
(10 plus 2) times 5
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
import datetime | |
#import time | |
n=int(input("タスク数を入れてね: ")) | |
tasks = list(range(n)) | |
for i in range(n): | |
tasks[i] = input(str(i) + "番目のタスクは:") | |
task_time=datetime.datetime.now()+datetime.timedelta(minutes=1) | |
for i in range(n): | |
print(tasks[i], "開始:" + task_time.strftime("%H:%M")) | |
task_time += datetime.timedelta(minutes=10) | |
print(tasks[i], "終了:" + task_time.strftime("%H:%M")) | |
print("休憩開始:" + task_time.strftime("%H:%M")) | |
task_time += datetime.timedelta(minutes=2) | |
print("休憩終了:" + task_time.strftime("%H:%M")) | |
print("") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment