|
利用正則表達式提取輸入字符串中的數字字母組合
可用來提取微信號
- import pyperclip,re
- print(pyperclip.paste())
- print()
- print('刪掉漢字')
- stand=re.compile(r'[\da-zA-Z_]{2,}')#查找標準
- m=stand.findall(pyperclip.paste())#查找粘貼的所有
- #print(m)#輸出查找出來的結果
- print()
- print('finding')
- print()
- ty=type(m)#檢查m的類型
- print(ty)
- print()
- n='\n'.join(m)
- print(n)
- input()
復制代碼
|
-
-
sd.zip
2018-10-27 17:14 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
383 Bytes, 下載次數: 6, 下載積分: 黑幣 -5
提取微信號
評分
-
查看全部評分
|