This commit is contained in:
MarkusJoe
2022-02-05 18:42:06 +08:00
parent cca358ebe0
commit f756e29ca0
2 files changed
+6 -6

No files matched your search

+6 -6
View File
@@ -127,11 +127,11 @@ def index():
if __name__ == '__main__': if __name__ == '__main__':
# app.run(threaded=True) app.run(threaded=True)
print('服务器已在http://127.0.0.1:5000 运行') print('服务器已在http://127.0.0.1:5000 运行')
try: # try:
server = pywsgi.WSGIServer(('0.0.0.0', 5000), app) # server = pywsgi.WSGIServer(('0.0.0.0', 5000), app)
server.serve_forever() # server.serve_forever()
except OSError: # except OSError:
print('5000 端口被占用') # print('5000 端口被占用')
BIN
View File
Binary file not shown.