提供更便利的获取用户单词表的方法,以json数据格式返回 #93
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "SPM2023S-QianJunQi"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
1、注册了一个新的蓝图路径以供功能实现
2、wordCMD中完成功能的代码代码实现
@ -0,0 +28,4 @@d = load_freq_history(user_freq_record)freqlst = sort_in_descending_order(pickle_idea.dict2lst(d))print(freqlst)words_freq=[] # 存储单词表的数组,格式为 单词-词频@qianjunqi
=号前后要有空格。所有的都应该如此。@ -0,0 +1,37 @@from flask import Flask, request, Blueprint, render_template, json, jsonify@qianjunqi
这个 Blueprint 加到 wordCMD.py 中好吗?
@ -0,0 +30,4 @@print(freqlst)words_freq=[] # 存储单词表的数组,格式为 单词-词频for i in range(len(freqlst)):words_freq.append(str(freqlst[i][0])+"-"+str(len(freqlst[i][1])))@qianjunqi
+号前后要有空格。@ -0,0 +22,4 @@def show(name):token = request.args.get("token")# when token is wrongif token != TKTK:@qianjunqi
这种方式安全性如何? 看看下面链接中 Token Authentication Example
https://flask-httpauth.readthedocs.io/en/latest/index.html
提供更便利的获取用户单词表的方法,以json数据格式范围to 提供更便利的获取用户单词表的方法,以json数据格式返回提供更便利的获取用户单词表的方法,以json数据格式返回to 提供更便利的获取用户单词表的方法,以json数据格式返回