From 347289ba2deefefa9404edf46c9c1fb0450b8b1e Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Wed, 16 Feb 2022 17:03:46 +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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.py b/app.py index 903ff3b..96b0d03 100644 --- a/app.py +++ b/app.py @@ -123,6 +123,11 @@ def index() -> Response: return app.send_static_file('index.html') +@app.route('/arg') +def arg(): + return {'data': sys.argv} + + if __name__ == '__main__': import sys logger.info(sys.argv)