随笔分类 - 技术-http server相关
摘要:编写js文件 var http = require('http'); var fs = require('fs'); var template = require('art-template'); var path = require('path'); var port = 5000; var se
阅读全文
摘要:# pip install web.py import web urls = ( '/(.*)', 'hello' ) app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name
阅读全文
摘要:from flask import Flask import pandas as pd app = Flask(__name__) @app.route('/') def show_excel(): df = pd.read_excel("./学生信息表.xlsx") table_html = df
阅读全文
摘要:httpie 可以用来调试http pip install httpie # POST 使用表单数据 http --form POST http://127.0.0.1:8000/snippets/ code="print 123" { "id": 3, "title": "", "code": "
阅读全文
浙公网安备 33010602011771号