⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 085-wsreqhandlers.py

📁 this code is used for edit on os of s60
💻 PY
字号:
def init_server():    global phone_req, cache    phone_req = {}    cache = {}def process_json(msg):    global cache    cache = msg    return phone_reqdef process_get(path, query):    phone_req[path] = True    if path in cache:        return cache[path]    return "text/plain",\           "Your request is being processed."\           "Reload the page after a while."init_server()httpd = Server(('', 9000), Handler)httpd.serve_forever()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -