http://acm.hdu.edu.cn/showproblem.php?pid=6754 题意: 字符串由小写字母构成 求 长度为N的 回文子串数量最少的 字符串的个数 思路: 长度为1的串 回文子串最少1个 形式:a 长度为2的串 回文子串最少2个 形式:aa / ab 长度为3的串 回文子串 ...
分类:
其他好文 时间:
2020-07-26 00:24:53
阅读次数:
55
一、Python通过PyMongo库实现对MongoDB的使用 代码: From pymongo import MongoClient # 链接mongodb数据库并初始化数据库 方式一: Client = MongoClient (‘mongodb://usr:password@uri’) 例:( ...
分类:
数据库 时间:
2020-07-26 00:02:09
阅读次数:
73
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Text; using System.Drawing; using System.IO; namespa ...
1、给一个person表,有id,email,查找不重复的按照id排序 Select distinct email from person order by asc ...
分类:
数据库 时间:
2020-07-23 18:55:40
阅读次数:
84
1.评估oracle 数据库rman 全备的大小: SQL> select sum(bytes)/1024/1024 from v$datafile; SUM(BYTES)/1024/1024 990SQL> select sum(bytes)/1024/1024 from dba_free_spa ...
分类:
数据库 时间:
2020-07-23 15:43:07
阅读次数:
131
1、左连接: var LeftJoin = from emp in ListOfEmployees join dept in ListOfDepartment on emp.DeptID equals dept.ID into JoinedEmpDept from dept in JoinedEmp ...
分类:
其他好文 时间:
2020-07-21 23:18:05
阅读次数:
103
#1 linq介绍 ##1.1 linq产生背景 一个应用服务后台程序,肯定会需要格式各样的数据检索跟操作,而这些数据在过去的这些年里一般都会包含在关系型数据库或者xml文件中。 .Net3.5版本发行之前,传统的数据源访问方式就是直接对数据库或者xml文件进行检索操作。在.Net3.5 Visua ...
分类:
其他好文 时间:
2020-07-21 22:24:15
阅读次数:
64
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; using System.Net;using System.Net.Sock ...
授权过滤器 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; u ...
分类:
Web程序 时间:
2020-07-20 10:40:40
阅读次数:
85
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using WebApplicatio ...
分类:
Web程序 时间:
2020-07-20 10:40:20
阅读次数:
85