DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to create text file with python and store a dictionary
import json Dict = {'Dict': Dict} with open('file.txt', 'w') as file: file.write(json.dumps(Dict))
PREVIOUS
NEXT
Tagged:
#create
#text
#file
#python
#store
#dictionary
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit