From 0b5d0a928c5556a40bdca25fbe86d97ae6093d11 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 27 Jan 2018 19:06:52 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=E4=BF=AE=E6=94=B9token=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/WebTrader/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/WebTrader/run.py b/examples/WebTrader/run.py index 9e705dd9..2b1b8d1f 100644 --- a/examples/WebTrader/run.py +++ b/examples/WebTrader/run.py @@ -40,7 +40,7 @@ with open("WEB_setting.json") as f: setting = json.load(f) USERNAME = setting['username'] PASSWORD = setting['password'] - TOKEN = base64.encodestring(TODAY+PASSWORD) + TOKEN = base64.encodestring(TODAY+PASSWORD).replace('\n', '') # 创建Flask对象