From 1506c1657db16a338439a1bc347c7765f929e111 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Thu, 22 Sep 2022 16:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0custom.conf=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/rules.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/rules.py b/js/rules.py index a1c4c3c..410ad81 100644 --- a/js/rules.py +++ b/js/rules.py @@ -176,5 +176,10 @@ def gen_cache(path='txt/js/tg'): if __name__ == '__main__': print(getRuleLists()) - print(gen_cache()) - print(gen_cache('txt/js/18')) \ No newline at end of file + # print(gen_cache()) + # print(gen_cache('txt/js/18')) + + custom_file = gen_cache() + '\n'+gen_cache('txt/js/18') + print(custom_file) + with open('custom.conf','w+',encoding='utf-8') as f: + f.write(custom_file) \ No newline at end of file -- GitLab