摘要: #####(一)概述: 根据面向对象程序设计的思想,对象包括属性(数据)和方法(操作)。其实,递归和循环就相当于两种非常相似的操作,但是它们都有适合自己操作的数据。可以把一个问题看作一个对象,问题由数据(问题没有解决时的状态或数据结构)和操作(把问题解决)组成。根据不同的数据(数据结构——> 问题结 阅读全文
posted @ 2021-02-04 09:52 仰望丶那一缕微光 阅读(2489) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install pyjwt 使用 import time import jwt import datetime print(datetime.datetime.now()) print(time.time() + 60, type(time.time())) # payload tok 阅读全文
posted @ 2021-01-26 15:11 仰望丶那一缕微光 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1、安装 pip install djangorestframework-simplejwt 2.使用 1.urls 配置 from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, ) ur 阅读全文
posted @ 2021-01-16 16:26 仰望丶那一缕微光 阅读(2652) 评论(0) 推荐(0) 编辑
摘要: 1、搜索mariadb镜像 docker search mariadb 2、下载docker镜像 docker pull docker.io/mariadb 3、查看本地已有的所有镜像 docker images 4、建一个目录作为和容器的映射目录 mkdir -p /data/mariadb/da 阅读全文
posted @ 2021-01-09 15:58 仰望丶那一缕微光 阅读(892) 评论(0) 推荐(0) 编辑
摘要: python 支付宝SDK推荐 github 地址:https://github.com/fzlee/alipay 公钥,私钥说明 app_private_key_string 为应用私钥 alipay_public_key_string 支付宝公钥(应用公钥换取的支付宝公钥) 其他按文档说明即可 阅读全文
posted @ 2020-12-25 09:22 仰望丶那一缕微光 阅读(118) 评论(0) 推荐(0) 编辑
摘要: nginx -s reload 有时候重新加载配置文件没有生效 检查/var/log/nginx/error.log [notice] 29410#0: signal process started [emerg] 2999#0: bind() to 0.0.0.0:9091 failed (13: 阅读全文
posted @ 2020-12-21 14:28 仰望丶那一缕微光 阅读(3406) 评论(0) 推荐(0) 编辑
摘要: 查询编码格式 查询语句:SELECT COLLATIONPROPERTY('Chinese_PRC_Stroke_CI_AI_KS_WS', 'CodePage'); 查询结果: 936 简体中文GBK 950 繁体中文BIG5 437 美国/加拿大英语 932 日文 949 韩文 866 俄文 6 阅读全文
posted @ 2020-09-27 11:24 仰望丶那一缕微光 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Dbeaver 驱动容易下载失败 更换源操作 依次点击窗口 > 首选项 > Dbeaver > 驱动 > meven 进入到 点击添加 阿里云中央仓库地址:http://maven.aliyun.com/nexus/content/groups/public/ 添加完毕后出现在最下面 找到之后上移到 阅读全文
posted @ 2020-08-23 17:22 仰望丶那一缕微光 阅读(3163) 评论(0) 推荐(0) 编辑
摘要: Ubuntu下载链接 http://mirrors.aliyun.com/ubuntu-releases/ Centos 下载链接 http://mirrors.aliyun.com/centos/ 选择合适的版本下载即可 阅读全文
posted @ 2020-08-19 09:42 仰望丶那一缕微光 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 装完环境运行项目报错 import lzma File "/usr/local/python3/lib/python3.6/lzma.py", line 27, in <module> from _lzma import * ModuleNotFoundError: No module named 阅读全文
posted @ 2020-08-14 09:31 仰望丶那一缕微光 阅读(8701) 评论(0) 推荐(0) 编辑