在做STM32f405 移植过程中,编译出现了cannot open source input file "core_cmInstr.h": No such file or directory的错误,显然我们需要将core_cmInstr.h添加keil include path中,具体如下图: 查 ...
分类:
其他好文 时间:
2021-04-15 12:04:39
阅读次数:
0
前言 本文主要是讲解EF Core3.0+ 如何实现自定义的数据库扩展函数 虽然EF.Functions 提供了很多数据库函数,但是并不全面.比如加密解密.. 这样的话 我们就需要自己扩展这些数据库函数 从而达到调用的目的. 本文以达梦数据库为例(其他数据库都一样).. 上篇文章推荐: EF Cor ...
分类:
其他好文 时间:
2021-04-15 11:58:32
阅读次数:
0
一.排序: 1.slice切片( ::-1) 2.reversed( ) 3.sorted( ,reverse=True)) 字母数字不可同时存在。默认为False升序,True降序。 4.filter(function,iterable) 二.常用 1.sum() 2.max() 3.min() ...
分类:
编程语言 时间:
2021-04-15 11:57:56
阅读次数:
0
相对路径问题: import os import sys # sys.path.append(os.getcwd()) # filename = "E:\python小脚本\测试导入\projects\project1\project1_1\Text1_1.txt" # 绝对路径 # filenam ...
分类:
编程语言 时间:
2021-04-14 12:44:36
阅读次数:
0
整理一下求C 的两种方法 题目 题意 这道题主要就是求n组东东的放置方法,约束条件是在任意第i组放完之前,i-1组必须放完,问有多少放置方法 特点 组合数学+简单的DP,解法思路就是在任意放置i组时,除了最后一位一定是i,剩下任意插空放置 一种是用逆元求(适合数值大的适合) int ksm(int ...
分类:
其他好文 时间:
2021-04-14 12:43:08
阅读次数:
0
关于mongodb的高级操作,包括聚合、主从复制、分片、备份与恢复、MR。 一、聚合 aggregate聚合(aggregate)主要用于计算数据,类似sql中的sum()、avg() 语法: db.集合名称.aggregate([{管道:{表达式}}]) 管道:管道在Unix和Linux中一般用于 ...
分类:
数据库 时间:
2021-04-14 12:40:50
阅读次数:
0
// 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s ...
分类:
编程语言 时间:
2021-04-14 12:05:41
阅读次数:
0
#!/usr/bin/env python3#!-*- coding:UTF-8 -*- import osclass GetPath():# 获取所有目录 @staticmethod def get_dir(path): print("打印所有目录:") for root, dirs, files ...
分类:
编程语言 时间:
2021-04-14 11:51:07
阅读次数:
0
#题目 #代码 #include <unordered_map> #include <vector> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &nums, int target) { v ...
分类:
其他好文 时间:
2021-04-13 12:55:20
阅读次数:
0
UE4支持多种内存分配器: /** Which allocator is being used */ enum EMemoryAllocatorToUse { Ansi, // Default C allocator Stomp, // Allocator to check for memory s ...
分类:
其他好文 时间:
2021-04-13 12:34:37
阅读次数:
0