with open("pythonuz.txt", 'w+') as yozish:
yozish.write("1: one, 2: two")
yozish.seek(0) print(yozish.read().split(':')[1])
Опрос
- 2: two
- one, 2
- 1: 2
- one: two