摘要:
用threading模块进行多线程操作:import subprocessimport threadingdef myping(ip): x=subprocess.call('ping -c2 -i0.1 -W1 %s &>/dev/null'%ip ,shell=True) if x==0: pr 阅读全文
posted @ 2018-03-24 08:58
夹板拖鞋
阅读(176)
评论(0)
推荐(0)
摘要:
(python) import rere.match('the','the apple') #在'the apple'中正则过滤以the开头的内容 (linux) >>> import re>>> re.match('the','the apple') #match 只从开头匹配<_sre.SRE_ 阅读全文
posted @ 2018-03-24 08:55
夹板拖鞋
阅读(213)
评论(0)
推荐(0)
浙公网安备 33010602011771号