色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術文章
文章詳情頁

Python正則表達式問題,(?i)什么意思

瀏覽:108日期:2022-07-02 18:25:08

問題描述

filter(re.compile(’(?i)([qwertyuiop]|[asdfghjkl]|[zxcvbnm]*)$’).match, words)如上,這是一個Python語句,(?i)什么意思?

問題解答

回答1:

(?aiLmsux) (One or more letters from the set ’a’, ’i’, ’L’, ’m’, ’s’, ’u’, ’x’.) The group matches the empty string; the letters set the corresponding flags: re.A (ASCII-only matching), re.I (ignore case), re.L (locale dependent), re.M (multi-line), re.S (dot matches all), and re.X (verbose), for the entire regular expression. (The flags are described in Module Contents.) This is useful if you wish to include the flags as part of the regular expression, instead of passing a flag argument to the re.compile() function.

Note that the (?x) flag changes how the expression is parsed. It should be used first in the expression string, or after one or more whitespace characters. If there are non-whitespace characters before the flag, the results are undefined.

忽略大小寫

標簽: Python 編程
主站蜘蛛池模板: 日韩经典一区 | 欧美成人视 | 亚洲三级在线观看 | 伊人不卡 | 国产成人精品视频午夜 | 国产成人免费永久播放视频平台 | 久色视频 | www一级片| 欧美激情免费观看一区 | 欧美与黑人午夜性猛交久久久 | 红色记忆 | 91视频18| 久久中文亚洲国产 | 亚洲一级毛片 | 91久久精品视频 | 国产成人高清一区二区私人 | 女人十八一级毛片 | 99热精品在线观看 | 久久亚洲精品成人综合 | 免费成人一级片 | 亚洲国产精品看片在线观看 | 亚洲精品一区二区三区五区 | 成人午夜在线观看国产 | 亚洲国产成人麻豆精品 | 高清精品女厕在线观看 | 亚洲欧美视频在线播放 | 久久99国产精一区二区三区 | 亚洲视频黄 | 国产精品毛片一区二区三区 | 精品国产一区二区三区在线 | 国产丝袜美女一区二区三区 | 成年人午夜影院 | 婷婷的久久五月综合先锋影音 | 久久夜视频 | 毛片视频免费观看 | 69中国xxxxxxxx18 | 欧美一级在线毛片免费观看 | 国产美女视频一区 | 亚洲狠狠ady亚洲精品大秀 | 亚洲午夜色 | 日本一区二区三区在线 视频 |