From 82104182b25abe6412e4457648c2563801c71623 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Wed, 16 Feb 2022 17:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 96b0d03..d1aeb1c 100644 --- a/app.py +++ b/app.py @@ -125,12 +125,11 @@ def index() -> Response: @app.route('/arg') def arg(): + import sys return {'data': sys.argv} if __name__ == '__main__': - import sys - logger.info(sys.argv) # logger.info('服务器已在 http://127.0.0.1:5000 运行') # try: # server = pywsgi.WSGIServer(('0.0.0.0', 5000), app)