摘要:
/// <summary> /// 排除Token检测Filter /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = t 阅读全文
摘要:
阅读全文
摘要:
表数据如下所示: 需求:根据Name分组,获取各个分组内时间最大的那一条记录 方法:使用窗口函数,sql如下: select * from ( select *, rank() over (partition by `Name` order by ctime desc) as ranking fro 阅读全文
摘要:
from enum import Enum, unique from math import sqrt from random import randint import pygame def main(): # 定义用来装所有球的容器 balls = [] # 初始化导入的pygame中的模块 p 阅读全文
摘要:
原因:设置reids缓存时,当前缓存中已经有了这个key的值,而且已存在的值的类型和要设置的值的类型不一致 阅读全文
摘要:
var records = studyRecords.GroupBy(x => x.StudyTime.Date).Select(y => new { date = y.Key, seconds = y.Sum(x => x.StudySeconds) }); 阿里云优惠活动 阅读全文
摘要:
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 阅读全文
摘要:
一、从mysql库中查询数据 新建一个py文件,写查询数据的方法 import pymysql def Read_database (sql): user_name='root' password='root' address='localhost' port='3306' database_nam 阅读全文
摘要:
开发的步骤 1、彻底了解业务需求 2、梳理并熟悉流程 3、定模型 4、梳理模块 5、开始开发-写模型 6、根据模型再次梳理模块和梳理以及细化思考流程 7、分模块开发 阅读全文
摘要:
首先Nuget中引入库: Microsoft.AspNetCore.Authentication.JwtBearer 1、注入 Startup里ConfigureServices方法里 services.AddAuthentication(JwtBearerDefaults.Authenticati 阅读全文