随笔分类 -  技术-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 阅读全文
posted @ 2021-06-09 23:20 该显示昵称已被使用了 阅读(53) 评论(0) 推荐(0)
摘要:# pip install web.py import web urls = ( '/(.*)', 'hello' ) app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name 阅读全文
posted @ 2021-05-31 15:18 该显示昵称已被使用了 阅读(59) 评论(0) 推荐(0)
摘要:from flask import Flask import pandas as pd app = Flask(__name__) @app.route('/') def show_excel(): df = pd.read_excel("./学生信息表.xlsx") table_html = df 阅读全文
posted @ 2021-05-31 11:29 该显示昵称已被使用了 阅读(381) 评论(0) 推荐(0)
摘要:httpie 可以用来调试http pip install httpie # POST 使用表单数据 http --form POST http://127.0.0.1:8000/snippets/ code="print 123" { "id": 3, "title": "", "code": " 阅读全文
posted @ 2020-12-06 11:52 该显示昵称已被使用了 阅读(377) 评论(0) 推荐(0)