223 читали · 2 года назад
Работа с json-файлами в Python
Введение JSON — это текстовый формат обмена данными, основанный на JavaScript. Но при этом формат независим от JS и может использоваться в любом языке программирования. В данной статье научимся работать с json-файлами в языке программирования Python. Модуль json Для работы с json-файлами нам понадобится модуль json, который к счастью входит в стандартную библиотеку python. Импортируем его: import json Создание json-файлов в Python Создадим словарь data, и занесём в него данные к примеру человека по имени “Василий”: import json data = { "first_name": "Vasiliy", "email": "vasya@gmail...
3 года назад
How to Convert Bitcoin-PUBKEY HEX Public Keys to Base58 Bitcoin Address and Check Balance for BTC Coins
CRYPTO DEEP TECH In this article, we will learn how to check the balance of Bitcoin coins in a large amount of data using the bitcoin-checker.py Python script for  this . We will also learn how to convert the public key of Bitcoin  PUBKEY (HEX) to Bitcoin Address  (Base58) All this big work is done  by the Python script  pubtoaddr.py As a result, we will check the balance of Bitcoin with particular ease by scanning the Blockchain in the Google Colab terminal  [TerminalGoogleColab]Earlier I recorded...