亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

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

瀏覽:80日期: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 編程
主站蜘蛛池模板: 日本aaaa精品免费视频 | 亚洲精品二区 | 视频二区在线观看 | 免费在线观看a级毛片 | 草草视频在线播放 | 嫩草视频在线播放 | 黄色高清在线观看 | 中国黄色片网站 | 免费黄色在线视频 | 一级免费黄色毛片 | 大片免费观看在线视频 | 国产三级三级三级三级 | 日韩国产有码在线观看视频 | 特级aaa毛片 | 久久福利青草狠狠午夜 | 欧美成人午夜精品一区二区 | 日日夜夜噜 | 在线观看色 | 日本a级特黄特黄刺激大片 日本a黄 | 久久9966e这里只有精品 | 成人国产片 | 亚洲视频免| 黄色小视频网 | 国产精品主播 | 亚洲精品一区久久狠狠欧美 | 午夜视频久久久久一区 | 欧美一区二区三 | 玖玖爱zh综合伊人久久 | a免费毛片在线播放 | 亚洲第一a亚洲 | 伊人2222| 成年人网站黄色 | 国产五月色婷婷六月丁香视频 | 激情五月色综合亚洲小说 | 大陆精品偷拍视频在线播放 | 国产日韩欧美在线 | 免费看黄色一级 | 成人久久在线 | 91成人国产网站在线观看 | 在线观看视频黄 | 亚洲在线视频免费 |