From 08c981359bbfe7108fb3b50a25d3b3f3cfb5f2ae Mon Sep 17 00:00:00 2001 From: jiaminxin <33108686+jiandandaoxingfu@users.noreply.github.com> Date: Thu, 21 Jan 2021 19:38:03 +0800 Subject: [PATCH] Delete server.py --- server.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 server.py diff --git a/server.py b/server.py deleted file mode 100644 index f6bbf69..0000000 --- a/server.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# @Author: old jia -# @Email: jiaminxin@outlook.com -# @Date: 2019-06-26 19:39:18 -# @Last Modified by: old jia -# @Last Modified time: 2019-06-26 19:45:57 - -import http.server -import os - -PORT = 8080 - -def callback(a, b, c): - os.system('chrome localhost') - print(1) - -if __name__ == "__main__": - try: - server = http.server.HTTPServer(("", PORT), callback) - print("HTTP server is starting at port "+repr(PORT)+'...') - print("Press ^C to quit") - server.serve_forever() - except KeyboardInterrupt: - print("^Shutting down server...") - server.socket.close()