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

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

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

瀏覽:113日期: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 編程
主站蜘蛛池模板: 亚洲日本欧美产综合在线 | 亚洲精品日韩中文字幕久久久 | 有码 在线| 久久亚洲国产成人影院 | 成人手机在线视频 | 日日摸人人看97人人澡 | 精品国产91久久久久久久 | 9久9久女女热精品视频免费观看 | 国产综合精品在线 | 国产日产亚洲系列首页 | 精品久久中文字幕有码 | 国产精品爱久久久久久久 | 亚洲欧美日本视频 | 国产成人精品久久综合 | 亚洲国产成人精品一区91 | 国产真实乱子伦精品 | 久久久久国产一级毛片高清板 | 日本一级特黄啪啪片 | 精品国产欧美一区二区 | 欧美成人国产一区二区 | 九九精品免视看国产成人 | 一区免费在线观看 | 99精品在线观看视频 | 亚洲在线视频网站 | 免费一级毛片麻豆精品 | 久久一本综合 | 在线播放亚洲美女视频网站 | 久久色婷婷 | 日本暖暖视频在线播放 | 欧美日韩成人午夜免费 | 精品欧美成人高清在线观看2021 | 91影视永久福利免费观看 | 男人天堂网在线视频 | 日韩精品一区二三区中文 | 亚洲一区二区免费看 | 亚洲综合图片人成综合网 | 国产成在线观看免费视频 | 91精品成人| 久久一区二区三区99 | 视频二区欧美 | 欧美高清在线精品一区 |