Skip to content

Instantly share code, notes, and snippets.

@ayu-mushi
Last active October 31, 2022 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayu-mushi/cb19d5f56d060eb6434781ad73f1e496 to your computer and use it in GitHub Desktop.
Save ayu-mushi/cb19d5f56d060eb6434781ad73f1e496 to your computer and use it in GitHub Desktop.
(10 plus 2) times 5
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