文章詳情頁
python3.5 正則表達式re.X模塊 不起作用
瀏覽:117日期:2022-09-04 13:08:10
問題描述
如圖:
import retel=r'''...d{2,3}...-...d{6}...'''print(re.findall(tel,’102-123456’))print(re.findall(tel,’102-123456’,re.X))顯示:[][]
不知道是程序哪里出問題了,請指教。
問題解答
回答1:你告訴我前面的點點點是啥←_←
回答2:tel=r'd{2,3}-d{6}'
相關文章:
1. 數據庫 - MySQL 單表500W+數據,查詢超時,如何優化呢?2. javascript - 百度echarts series數據更新問題3. 求大神幫我看看是哪里寫錯了 感謝細心解答4. MySQL客戶端吃掉了SQL注解?5. mac 安裝 python_MySQLdb6. javascript - 圖片能在網站顯示,但控制臺仍舊報錯403 (Forbidden)7. php自學從哪里開始?8. mysql - AttributeError: ’module’ object has no attribute ’MatchType’9. python小白的基礎問題 關于while循環的嵌套10. phpstady在win10上運行
排行榜
