This commit is contained in:
2026-06-11 13:17:59 +03:00
parent 0aa74c909c
commit 65f48825f9
2 changed files with 56 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import json
def read():
global db
with open('db.json', 'r') as openfile:
db = json.load(openfile)
read()
for i in db:
ttime = db[i]
hours = ttime//60//60 ; ttime = ttime - hours*60*60
minutes = ttime//60 ; ttime = ttime - minutes*60
seconds = ttime
print(f'{i} >> {hours}:{minutes}:{seconds}')