Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. def schedule():
  2.     d = {'math' : '8:00', 'linguistics' : '9:30', 'germam' : '11:10'}
  3.     with open('template.txt', 'w') as f:
  4.        #file = open('template.txt', 'w')
  5.        for i in f.readlines():  #считывает из файла все строки и возвращает его
  6.            key, value = i.strip().split(':')
  7.     print(f)
  8.            
  9. schedule()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement