Data reference between files

Asked 1 years ago, Updated 1 years ago, 57 views

For example, at A.py I'm going to continue scrolling through the web with a repetitive phrase Store the data in a dictionary variable (the data in the variable continues to be updated).)

B.py is programming using the data, but it is difficult to read the value of the variable.

Instead of using other DBs, I want to share variable values between files in B file.

It's hard to study. Please help me.

dictionary

2022-09-22 14:39

1 Answers

If A.py continues to operate, B cannot invade A's memory area in the middle.

Crawled data from A is stored in a dictionary

Save variable as pickle or

I think we can share it using json dump.

DB is not required.


2022-09-22 14:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.