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