s = pd.Series(['Tom', 'William Rick', 'John', 'Alber@t', np.nan, '1234','SteveMinsu']) s.str#不能对series对象使用str处理函数,必须转换成pandas.core.strings.StringMetho ...
分类:
其他好文 时间:
2020-05-01 11:07:00
阅读次数:
86
"D. Alyona and Strings" 题意 给出两个字符串s,t,让找出最长的k个在s,t不相交的公共子串。 思路 看了好几个题解才搞懂。 代码中有注释 代码 ...
分类:
其他好文 时间:
2020-04-30 19:27:39
阅读次数:
59
Redis专题一:数据类型 [TOC] Redis是一种非关系型数据库,使用key value键值对存储方式 key value可以是string, list, hashes, or ordered sets等数据类型 1. strings 存储字符串,数值类型 | 命令 | 解释 | 例子 | | ...
分类:
其他好文 时间:
2020-04-29 01:03:06
阅读次数:
81
来自互联网,2020整理 1、 int a[10]={1,2,3,4,5,6,7,8,9,0}; int *p=&a[1]; 则p[6]等于? 答:8;这个还是很好理解的p[0]=2嘛 2、整数数组清零的函数有? #include <strings.h> void bzero(void *s, si ...
分类:
其他好文 时间:
2020-04-27 17:00:15
阅读次数:
51
ES6引入了一种新型的字符串字面量语法,我们称之为模板字符串(template strings)。除了使用反撇号字符 ` 代替普通字符串的引号 ' 或 "反撇好中的所有空白都属于字符串,所以千万要小心缩进!!let a=1;let b=2;var arr=[1,2,3]var htm=""for ( ...
分类:
其他好文 时间:
2020-04-26 17:12:42
阅读次数:
122
摘自:https://m.php.cn/redis/442650.html 1、string 简介:Strings数据类型是最常用、简单的key-value类型,普通的key/ value 存储都可以归为此类。value不仅可以是字符串,也可以是数字。因为是二进制安全的,所以你完全可以把一个图片文件 ...
分类:
其他好文 时间:
2020-04-23 00:58:34
阅读次数:
57
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2020-04-21 22:26:53
阅读次数:
82
1. 点击 delete 删除文件时,会弹出如下选项: Safe delete (with usage search) Search in comments and strings "Safe delete ( with usage search)", 字面意思是使用搜索安全删除. 是否选中结果分别 ...
分类:
编程语言 时间:
2020-04-21 14:45:51
阅读次数:
792
This is the hard version of the problem. The difference is the constraint on the sum of lengths of strings and the number of test cases. You can make ...
分类:
编程语言 时间:
2020-04-18 14:10:40
阅读次数:
87
logger文件 package src import ( "fmt" "os" "path/filepath" "strings" "sync" "time" ) type File struct { sync.RWMutex // 文件名 fileName string suffix strin ...
分类:
其他好文 时间:
2020-04-17 11:03:24
阅读次数:
101