PYTHON_SOLVES Telegram 58
## JSON

Тема:
Сохраняем и читаем структурированные данные.

import json  # https://www.tgoop.com/python_solves/14

data = {"name": "Алексей", "age": 28}

# Сохраняем в файл
with open("data.json", "w") as f:
json.dump(data, f)

# Читаем из файла
with open("data.json", "r") as f:
loaded = json.load(f)
print(loaded)


Полезные советы:

* JSON удобен для обмена данными с сайтами и API.
* В Python словарь ↔️ JSON объект.

#азы



tgoop.com/python_solves/58
Create:
Last Update:

## JSON

Тема:
Сохраняем и читаем структурированные данные.

import json  # https://www.tgoop.com/python_solves/14

data = {"name": "Алексей", "age": 28}

# Сохраняем в файл
with open("data.json", "w") as f:
json.dump(data, f)

# Читаем из файла
with open("data.json", "r") as f:
loaded = json.load(f)
print(loaded)


Полезные советы:

* JSON удобен для обмена данными с сайтами и API.
* В Python словарь ↔️ JSON объект.

#азы

BY Python решает 🐍


Share with your friend now:
tgoop.com/python_solves/58

View MORE
Open in Telegram


Telegram News

Date: |

Informative Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. A few years ago, you had to use a special bot to run a poll on Telegram. Now you can easily do that yourself in two clicks. Hit the Menu icon and select “Create Poll.” Write your question and add up to 10 options. Running polls is a powerful strategy for getting feedback from your audience. If you’re considering the possibility of modifying your channel in any way, be sure to ask your subscribers’ opinions first. 5Telegram Channel avatar size/dimensions Healing through screaming therapy
from us


Telegram Python решает 🐍
FROM American