摘要: readFile在外面,修改文件要重启服务才能更新 var fs = require('fs') var jsonDate = ''; fs.readFile('book.json',function(error,data){ // console.log(data.toString()) json 阅读全文
posted @ 2021-05-31 22:28 该显示昵称已被使用了 阅读(46) 评论(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 该显示昵称已被使用了 阅读(54) 评论(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 该显示昵称已被使用了 阅读(372) 评论(0) 推荐(0) 编辑