阅读目录(Content) 一、数据类型 二、管理实战 1.通用操作 2.strings(字符)类型操作 3.hash(字典)类型操作 4.List(列表)类型操作 5.Set(集合)类型操作 6.Sorted-Set(有序集合)类型操作 回到顶部(go to top) 一、数据类型 String: ...
分类:
其他好文 时间:
2019-11-21 13:45:26
阅读次数:
77
strings包 /* 用来处理字符串的。 检索子串 格式化 比较大小 裁剪 炸碎 拼接 */ 1 package main 2 3 import ( 4 "fmt" 5 "strings" 6 ) 7 8 func main() { 9 10 //判断hello里有没有el字符 11 fmt.Pr ...
分类:
其他好文 时间:
2019-11-20 19:54:58
阅读次数:
95
python FAQ 参考: https://docs.python.org/zh cn/3.7/faq/design.html why are python strings immutable 1. why python str is immutable? 一个是性能:知道字符串是不可变的,意味着 ...
分类:
编程语言 时间:
2019-11-19 16:54:48
阅读次数:
81
389. Find the Difference Easy Easy Easy Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling s ...
分类:
其他好文 时间:
2019-11-18 09:22:52
阅读次数:
65
Given two binary strings, return their sum (also a binary string). The input strings are both non empty and contains only characters 1 or 0. Example 1 ...
分类:
其他好文 时间:
2019-11-16 00:06:10
阅读次数:
55
Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings)…… 与memcached一样,为了保证效率,数据都是缓存在内存中。区别的是redis会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记 ...
分类:
其他好文 时间:
2019-11-14 18:28:45
阅读次数:
70
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 ...
分类:
其他好文 时间:
2019-11-13 00:54:18
阅读次数:
88
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Example ...
分类:
其他好文 时间:
2019-11-12 09:21:34
阅读次数:
80
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 ...
分类:
其他好文 时间:
2019-11-11 09:49:00
阅读次数:
68
package main import ( "fmt" "strings" ) func main031() { fmt.Printf("字符形式:%c;\n", 0x007B) //{ fmt.Printf("UTF8码值(序号)形式:%U;\n", "妹")//U+007B } /*检索字符串*... ...
分类:
编程语言 时间:
2019-11-10 19:39:00
阅读次数:
101