A
A
AlekseiFlis2019-03-05 18:34:36
Python
AlekseiFlis, 2019-03-05 18:34:36

Are the data entered by the imported dictionary preserved?

I import a dictionary from another file and make changes to it, either add something or delete something. The question is whether my changes in the dictionary are saved in its "native" file. If not, how do you save them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tema_sun, 2019-03-05
@AlekseiFlis

Use the database and don't reinvent the wheel.

L
LODIII, 2019-03-05
@LODIII

The question is not entirely clear. What does import dictionary mean
first thoughts
1) from module_x import dictionary_y
or
2) with file.open() as f:
f.read
?
give an example code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question