Python
正则表达式
w = [a-zA-Z0-9_]
w When the LOCALE and UNICODE flags are not specified, matches any alphanumeric character and the underscore; this is equivalent to the set [a-zA-Z0-9_]. With LOCALE, it will match the set [0-9_] plus whatever characters are defined as alphanumeric for the current locale. If UNICODE is set, this will match the characters [0-9_] plus whatever is classified as alphanumeric in the Unicode character properties database. named pattern syntax
(?P<year>d{4})
MySQL
给一个用户操作某一个数据库的完整权限
GRANT ALL PRIVILEGES ON dbname.* TO username@localhost IDENTIFIED BY ‘password’ WITH GRANT OPTION;
VIM
:bd close current buff

最近评论