av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

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

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

瀏覽:95日期: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 編程
主站蜘蛛池模板: 羞羞色网站 | 中文字幕国产在线 | 成人伊人 | 99久久免费观看 | 色爱综合网 | 国产精品久久 | 日韩中文字幕视频在线 | 国产精品永久久久久久久www | 成人美女免费网站视频 | 中文字幕第九页 | 国产一区二区三区色淫影院 | 日韩欧美在线免费 | 在线播放国产一区二区三区 | 国产成人精品a视频 | 黄网免费看 | 国产日韩欧美 | 亚洲国产aⅴ精品一区二区 免费观看av | 欧美成人精品在线观看 | 一区二区在线免费播放 | 一级看片免费视频囗交动图 | 成人免费视频网址 | 亚洲一区二区三区在线视频 | 99精品久久 | 免费福利视频一区二区三区 | 欧美h| 久久久夜色精品亚洲 | 狠狠色综合欧美激情 | 波多野结衣精品在线 | 精品一区二区久久久久久久网站 | 久草精品视频 | 欧美最猛黑人xxxⅹ 粉嫩一区二区三区四区公司1 | 亚洲国产一区视频 | 午夜电影一区二区 | 日韩一区二区三区在线视频 | 深夜爽视频| 波多野结衣一区二区三区在线观看 | 精品网站999www | 久久99精品久久久97夜夜嗨 | 男人午夜视频 | 涩涩视频在线观看 | 日韩一区二区在线免费观看 |