.get("RZZGMCM") instanceof String){ formbean.getBean().put("RZZGMCM_ARR", (formbean.getBean().get("RZZGMCM").toString().split("," ...
分类:
编程语言 时间:
2020-09-17 17:13:46
阅读次数:
32
int romanToInt(char * s){ int* hash = (int*)calloc(26,sizeof(int)); hash['I'-65] = 1; hash['V'-65] = 5; hash['X'-65] = 10; hash['L'-65] = 50; hash['C' ...
分类:
其他好文 时间:
2020-09-17 17:09:44
阅读次数:
20
''' 斗地主:v1.0 ''' import random def creat_poker(): # 扑克9种:2-10 poker_num = [str(i) for i in range(2, 11)] # 剩下的4种 poker_str = ['A', 'J', 'Q', 'K'] # 2个 ...
分类:
编程语言 时间:
2020-09-17 17:07:42
阅读次数:
27
windows时间同步小脚本: @echo off net stop w32time net start w32time w32tm /config /manualpeerlist:时间服务器IP /syncfromflags:manual /update ...
1. 登录服务器 2. 登录docker docker exec -it ***容器名*** /bin/bash 3. 查看 PHP版本 php -v 4. 查找扩展包 yum search bcmath 5 选择版本并安装 yum install php72-php-bcmath.x86_64 6 ...
分类:
Web程序 时间:
2020-09-17 16:58:55
阅读次数:
47
const factorial = (n) => (n > 1 ? n * factorial(n - 1) : 1); const memoize = (fn) => { const cache = {}; return (...args) => { const key = JSON.string ...
分类:
编程语言 时间:
2020-09-17 16:31:51
阅读次数:
32
1. del删除 2. pop()方法 pop()删除并返回指定元素,如果未指定则默认操作最后一个元素 3. remove()方法 删除首次出现的指定元素,若不存在则抛出异常 1 >>> a = [10,20,30] 2 >>> a 3 [10, 20, 30] 4 >>> del a[1] 5 > ...
分类:
编程语言 时间:
2020-09-17 16:29:52
阅读次数:
29
给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。 方法一:动态规划 对于一个子串而言,如果它是回文串,并且长度大于2,那么将它首尾的两个字母去除之后,它仍然是个回文串 用P(i, j)表示字符串s的第i到j个字母组成的串(s[i:j])是否为回文串 P(i, ...
分类:
其他好文 时间:
2020-09-17 16:29:15
阅读次数:
24