Skip to content

Nikita mikhalev at 19#22

Open
frog016 wants to merge 4 commits intorailbotan:mainfrom
frog016:Nikita_Mikhalev_AT-19
Open

Nikita mikhalev at 19#22
frog016 wants to merge 4 commits intorailbotan:mainfrom
frog016:Nikita_Mikhalev_AT-19

Conversation

@frog016
Copy link

@frog016 frog016 commented Dec 5, 2021

No description provided.



def write_json(news_list, filename):
json_file = json.dumps(news_list, ensure_ascii=False, indent=4).encode('utf8')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь можно было использовать метод dump из модуля json

@railbotan
Copy link
Owner

5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants