/images/avatar.png

Schaepher's Blog

简单的 map 实现

In computer science, an associative array, map, symbol table, or dictionary is an abstract data type composed of a collection of (key, value) pairs, such that each possible key appears at most once in the collection. —— wikipedia 在计算机科学中,关联数组、映射、符号表或者字典是一种由一系列(

【数据结构】Map (映射)的各种实现

In computer science, an associative array, map, symbol table, or dictionary is an abstract data type composed of a collection of (key, value) pairs, such that each possible key appears at most once in the collection. —— wikipedia 在计算机科学中,关联数组、映射、符号表或者字典是一种由一系列(

文本处理

sed 替换文本(search 替换为 replace) sed 's/search/replace/g' text-file.txt 删除空行(包括仅包含空格的行) sed '/^\s*$/d' text-file.txt