国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

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

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

瀏覽:87日期: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 編程
主站蜘蛛池模板: 久久免费视频8 | 成人交性视频免费看 | 美国免费三片在线观看 | 91高端极品外围在线观看 | 老司机深夜影院入口aaaa | 日本高清视频www夜色资源 | 97成人精品视频在线播放 | 青青草国产免费一区二区 | 久草在线免费看 | 日本一区二区三区免费视频 | 久久99爰这里有精品国产 | 欧美日韩一区二区三区在线观看 | 日韩在线三级 | 国产日韩一区二区三区 | 香蕉视频国产精品 | 中国成人免费视频 | 亚洲成人黄色在线 | 综合精品 | 日本免费一区二区三区三州 | 成人免费公开视频 | 草草草在线观看 | 日韩高清在线二区 | 亚洲免费中文 | 日韩特级片 | 久久99九九精品免费 | 俄罗斯极品美女毛片免费播放 | 国产欧美日本 | 久久久亚洲欧美综合 | 免费a网| 搞黄网站免费观看 | 精品免费久久久久国产一区 | 欧美一级级a在线观看 | 久久国产精品免费一区二区三区 | 欧美18毛片免费看 | 亚洲精品人成在线观看 | 国产区香蕉精品系列在线观看不卡 | 久久精品国产亚洲麻豆 | 九九99在线视频 | 在线观看国产亚洲 | 国产一区二区三区四区波多野结衣 | 成人夜色视频网站在线观看 |