U
U
user7770002020-05-21 16:57:04
Python
user777000, 2020-05-21 16:57:04

Python: how to import a file into a module?

How to import a file or information from it in Python?
I made a blockchain consisting of files. Each file contains information about one transaction. The file also contains a unique number.
And I want that, for example, if I indicate the same number in a new block that is already in any other file, then the information from this file (block) is rewritten into a new block. Thus, it will be possible to track all transactions recorded under one number by opening only the last file that contains this unique number.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-05-21
@user777000

1. Before doing such a task, you must first master python at least at an intermediate level.
2. Creating multiple accounts is prohibited by the rules https://qna.habr.com/user/lil_rainnn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question