- [a-z]或[12]:匹配方括号中指定范围内的单个字符或方括号列出的其中一个字符。
- [!9]:不匹配方括号中所列字符或指定范围内的单个字符。
- *:匹配的是数量。0个或多个。
- ?:匹配的是数量。1个。
每天一道笔试题系列
部分解释来源于网络
##当前更新 ###2014年3月阿里巴巴暑期实习生笔试题
今天在阿里云买了一个便宜的主机¥49.5。暂时买了一个月的,先用着试试。
- 地域:青岛
- 可用区:青岛可用区A
- CPU:1核
- 内存:512MB
- 带宽:1Mbps
- 操作系统:CentOS 6.5 64位
- 云盾:是
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void IOCP_main() | |
{ | |
DWORD Ret; | |
WSADATA wsaData; | |
//WSAStartup 调用Socket前必须指定版本 | |
if ((Ret = WSAStartup(0x0202, &wsaData)) != 0) | |
{ | |
printf("WSAStartup failed with error %d\n", Ret); | |
return ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 保存到 ~/.gdbinit | |
python | |
import sys | |
sys.path.insert(0, '/usr/share/gcc-4.8.2/python') # 这个路径以实际情况为准 | |
from libstdcxx.v6.printers import register_libstdcxx_printers | |
register_libstdcxx_printers (None) | |
end | |
# | |
# STL GDB evaluators/views/utilities - 1.03 |