安全羅盤实驗室服务器启动时的语法错误

2024-04-20 14:49:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在windows 7上安装此服务器: https://github.com/securitycompass/LabServer

Python正在运行,我用这行代码安装的所有应用程序都在运行

easy_install blinker cherrypy flask flask-sqlalchemy simplejson

当我试着做这个的时候

C:\LabServer-master>python app.py

我有以下错误

File "app.py", line 30
print " [*] %s [%s] \"%s %s\"" % (request.remote_addr, datetime.datetime.now
().strftime("%Y-%m-%d %H:%M:%S"), request.method, request.url)
                             ^
SyntaxError: invalid syntax

请问,如何运行这个服务器?你知道吗

谢谢!你知道吗


Tags: 代码pyhttpsgithub服务器comapp应用程序