From 27a872b66aab9f1bbaff925ea9ba52a4cb862bfb Mon Sep 17 00:00:00 2001 From: wuyuansushen <43259764+wuyuansushen@users.noreply.github.com> Date: Thu, 21 Nov 2019 00:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=BC=8F=E7=89=88=E6=9C=AC(=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=9C=A8.py=E5=90=8E=E9=9D=A2=E6=B7=BB=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=8F=82=E6=95=B0=E6=9D=A5=E8=BE=BE=E5=88=B0=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E8=BE=93=E5=85=A5=E4=B8=BB=E9=A2=98=E5=86=85=E5=AE=B9?= =?UTF-8?q?(=E5=8D=B3xx=E5=8F=98=E9=87=8F=E7=9A=84=E5=86=85=E5=AE=B9)?= =?UTF-8?q?=E7=9A=84=E6=95=88=E6=9E=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\207\347\253\240\347\224\237\346\210\220\345\231\250.py" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" "b/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" index 2b63bfd..6ddde2d 100644 --- "a/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" +++ "b/\350\207\252\345\212\250\347\213\227\345\261\201\344\270\215\351\200\232\346\226\207\347\253\240\347\224\237\346\210\220\345\231\250.py" @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: UTF-8 -*- -import os, re +import os, re, sys import random,readJSON data = readJSON.读JSON文件("data.json") @@ -39,7 +39,7 @@ def 另起一段(): return xx if __name__ == "__main__": - xx = input("请输入文章主题:") + xx = sys.argv[1] for x in xx: tmp = str() while ( len(tmp) < 6000 ) : @@ -51,4 +51,4 @@ def 另起一段(): else: tmp += next(下一句废话) tmp = tmp.replace("x",xx) - print(tmp) \ No newline at end of file + print(tmp)