#go语言 用go统计字符串中汉字的数量 package main // 声明 main 包,表明当前是一个可执行程序 import ( "fmt" ) func main() { a := 0 s1 := "hello沙河小王子" for _, i := range s1 { if i > 'z' ...
分类:
其他好文 时间:
2021-06-21 20:34:27
阅读次数:
0
We have n jobs, where every job is scheduled to be done from startTime[i] to endTime[i], obtaining a profit of profit[i]. You're given the startTime, ...
分类:
其他好文 时间:
2021-06-21 20:22:26
阅读次数:
0
表格操作 1.为什么要学习 公司开发中 特别是开发 crm erp OA系统的时候 会有一个需求 导入和导出报表 (表格) 2. 解决方案 jxl : 只能对Excel进行操作,属于比较老的框架,已经停止更新和维护(已经废弃) poi: 现在比较主流 可以操作不同版本的表格和word 3.版本说明 ...
分类:
其他好文 时间:
2021-06-21 20:14:09
阅读次数:
0
1 #算法:解决问题的方法和步骤 2 3 #排序算法 4 #选择排序 5 def select(items, comp = lambda x,y : x <y): 6 #通过隐藏函数lambda判断两个数的大小 7 items = items[:] 8 for i in range(len(item ...
分类:
编程语言 时间:
2021-06-21 20:06:24
阅读次数:
0
# 四位验证码 """四位数验证码""" code="" for i in range(4): print(i) index = random.randrange(4) #0-3 中随机取一个数 if index != i and index + 1 != i: code +=chr(random. ...
分类:
编程语言 时间:
2021-06-20 18:07:43
阅读次数:
0
创建本地定时任务(注意修改时间) schtasks /create /sc once /tn testtask02 /tr "calc.exe" /sd 2021/06/19 /st 19:07 创建远程计算机的定时任务 schtasks /s 192.168.200.20 /u abking /p ...
分类:
其他好文 时间:
2021-06-20 17:44:36
阅读次数:
0
word通配符查询-从入门到放弃 word的通配符采用的正则表达式,但有些地方不同,大致如下; 1、@(正则表达式中采用:+) 代表1个以上前一字符或表达式。只在查找框中使用。例:查找9@,可以找到9、99、999、9999999,即一个或以上的连续的9。查找[0-9]@,可以找到1、125、784 ...
分类:
其他好文 时间:
2021-06-19 19:14:51
阅读次数:
0
package leetcode; public class demo_79 { //全局变量,如果找到就返回 int flag=0; public boolean exist(char[][] board, String word) { int[][] visited=new int[board. ...
分类:
其他好文 时间:
2021-06-19 19:08:36
阅读次数:
0
知识点:dp+trie 这道题显然是从前往后dp的,题解区里还没有这样的题解,我就来发一波(题解区里也有提到不过并没有做详细的说明也没有代码)。 思路和从后往前的基本一样。 设 $dp_i$代表前缀 \(s_{1...i}\) 有多少种不同的组成方式。 很容易想到转移方程: 如果一个模式串 \(t\ ...
分类:
其他好文 时间:
2021-06-19 18:45:40
阅读次数:
0
from turtle import * def square(size=50, rgb = 'orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) for ...
分类:
其他好文 时间:
2021-06-18 20:05:27
阅读次数:
0