From 59ab6735628fba9847a1e6ec85373a0857424d4a Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 11 Oct 2022 14:33:20 +0800 Subject: [PATCH] feat: release txt content --- release.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 release.py diff --git a/release.py b/release.py new file mode 100755 index 0000000..66bc18f --- /dev/null +++ b/release.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +import json + +strData = '' +data = json.loads(open('xxrs.json').read()) +for title, content in data.items(): + strData += '%s\n\n' % title + strData += '%s\n\n\n' % '\n\n'.join(content) +print(strData.strip())