摘要: ###Python 1基础 Python基础(1)- 调用函数 Python基础(2)- 函数参数(动态参数) Python基础(3)- 字符串中引入变量 Python基础(4)- 可迭代对象 Python基础(5)- __del__() 析构方法 Python基础(6)- 装饰器 Python基础 阅读全文
posted @ 2022-04-01 22:50 青山原 阅读(74) 评论(0) 推荐(0) 编辑
摘要: ###问题 RuntimeError:working on outside of application context. ![](https://img2023.cnblogs.com/blog/2634283/202305/2634283-20230525005223829-313133763. 阅读全文
posted @ 2023-05-24 11:45 青山原 阅读(101) 评论(0) 推荐(0) 编辑
摘要: ###安装 ``` pip3 install mysql-connector-python pip install flask_sqlalchemy ``` ###/setting.py ``` class Configs: # 数据库信息 MYSQL_USER = '' MYSQL_PWD = ' 阅读全文
posted @ 2023-05-03 21:11 青山原 阅读(35) 评论(0) 推荐(0) 编辑
摘要: ###参考资料: https://segmentfault.com/a/1190000018422882 https://www.yuque.com/ant-design/course/ig6mzb ###/services/ant-design-pro/register.js import { C 阅读全文
posted @ 2023-02-25 17:55 青山原 阅读(58) 评论(0) 推荐(0) 编辑
摘要: ###修改后端地址 \src\consts\config.js export const CONFIG = { URL: 'http://localhost:7777', ROLE: { 0: 'user', 1: 'admin', 2: 'superAdmin' } } ###/services/ 阅读全文
posted @ 2023-02-25 17:50 青山原 阅读(307) 评论(0) 推荐(0) 编辑
摘要: ###引入 DVA export default { plugins: [ ['umi-plugin-react', { antd: true, dva: true, }], ], // ... } ###新建src/models/register.js export default { names 阅读全文
posted @ 2023-02-25 17:47 青山原 阅读(234) 评论(0) 推荐(0) 编辑
摘要: ###第一个组件: export default () => { return <div>hello world</div>; } ###React 组件语法 import React from 'react'; class ShoppingList extends React.Component 阅读全文
posted @ 2023-02-25 17:39 青山原 阅读(37) 评论(0) 推荐(0) 编辑
摘要: ###新建src/pages/Request.js import React from 'react'; export default () => { return ( <div>临时用</div> ); } ###修改config/routes.js path:路径 component:组件,js 阅读全文
posted @ 2023-02-25 17:33 青山原 阅读(5) 评论(0) 推荐(0) 编辑
摘要: ###背景 因为websocket请求/返回均需要处理字节流 现返回基本能正常处理,但请求字段及加密方式与业务紧密相关,抓着开发大佬问了几遍,有点头疼 ###Python 中的 struct 模块 ####pack 操作 Pack 操作必须接受一个 template string 以及需要进行 pa 阅读全文
posted @ 2023-02-25 17:17 青山原 阅读(191) 评论(0) 推荐(0) 编辑
摘要: ###使用npm安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org ###安装yarn cnpm install -g yarn ###安装Umi cnpm install -g umi ###安装项目 http 阅读全文
posted @ 2023-02-25 17:00 青山原 阅读(44) 评论(0) 推荐(0) 编辑
摘要: ###使用 对拼接的字符串,以字典的格式传入加密 from urllib.parse import urlencode base_url = "https://m.weibo.cn/api/container/getIndex?" params1 = {"value": "english", "pa 阅读全文
posted @ 2023-02-16 23:34 青山原 阅读(110) 评论(0) 推荐(0) 编辑