上一页 1 2 3 4 5 6 7 8 ··· 29 下一页
摘要: /// <summary> /// 排除Token检测Filter /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = t 阅读全文
posted @ 2021-04-09 10:43 向萧 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-03-02 13:52 向萧 阅读(312) 评论(0) 推荐(1) 编辑
摘要: 表数据如下所示: 需求:根据Name分组,获取各个分组内时间最大的那一条记录 方法:使用窗口函数,sql如下: select * from ( select *, rank() over (partition by `Name` order by ctime desc) as ranking fro 阅读全文
posted @ 2021-02-03 13:45 向萧 阅读(156) 评论(0) 推荐(0) 编辑
摘要: from enum import Enum, unique from math import sqrt from random import randint import pygame def main(): # 定义用来装所有球的容器 balls = [] # 初始化导入的pygame中的模块 p 阅读全文
posted @ 2020-12-05 15:04 向萧 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 原因:设置reids缓存时,当前缓存中已经有了这个key的值,而且已存在的值的类型和要设置的值的类型不一致 阅读全文
posted @ 2020-11-25 18:25 向萧 阅读(190) 评论(0) 推荐(0) 编辑
摘要: var records = studyRecords.GroupBy(x => x.StudyTime.Date).Select(y => new { date = y.Key, seconds = y.Sum(x => x.StudySeconds) }); 阿里云优惠活动 阅读全文
posted @ 2020-11-14 15:10 向萧 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: echo -e "\033[33m 是否启动consul\033[0m" echo "y 是" echo "n 否" read start_con if [ $start_con == "y" ] then JOIN_IP="$(docker inspect -f '{{.NetworkSettin 阅读全文
posted @ 2020-10-28 10:07 向萧 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 一、从mysql库中查询数据 新建一个py文件,写查询数据的方法 import pymysql def Read_database (sql): user_name='root' password='root' address='localhost' port='3306' database_nam 阅读全文
posted @ 2020-10-18 14:34 向萧 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 开发的步骤 1、彻底了解业务需求 2、梳理并熟悉流程 3、定模型 4、梳理模块 5、开始开发-写模型 6、根据模型再次梳理模块和梳理以及细化思考流程 7、分模块开发 阅读全文
posted @ 2020-10-09 15:37 向萧 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 首先Nuget中引入库: Microsoft.AspNetCore.Authentication.JwtBearer 1、注入 Startup里ConfigureServices方法里 services.AddAuthentication(JwtBearerDefaults.Authenticati 阅读全文
posted @ 2020-09-28 13:55 向萧 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 29 下一页