Answer the question
In order to leave comments, you need to log in
What is the format of json files and how to upload them?
For example, this code:
import json
dict = {
'hello': 'world'
'pubg':'best_game'
}
with open ('saves.какой формат тут надо указать') as file:
json.dump(#нужны ли кавычки перед и после dict? dict)
#с dumps мне все понятно
with open('saves.какой формат тут надо указать') as file:
json.loads(#тут тоже не очень понял, выгружать надо под именем которое было указано в dump, и нужно ли ставить кавычки? dict)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question