看板
[ Python ]
討論串[問題] 字串處理 - 簡化程式碼
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
# 剛好最近在用. # 針對您的items = '127.0.0.1:443;SSL'這個例子的簡單範例:. import re. match = re.search(u'''. (?P<ip>[\d]+\.[\d]+\.[\d]+\.[\d]+)?. :. (?P<port>[\d]+)?. ;.
(還有158個字)
內容預覽:
還是一樣又用 C 的方式在寫程式了 Q_q. 輸入的資料. print "\t# {IP} : {PORT} ; {COMMENT}". print "\tIP:Port1,Port2.....;Comment". print "\tIP1-IP2:Port1;Comment". print "\t
(還有393個字)
首頁
上一頁
1
下一頁
尾頁