![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
琴仙咩豆丁
嘿,你的一沓
展开
-
Python3 pingIP地址,Windows和Linux
!/usr/bin/python3Windosimport subprocess as sp ip ={'10.168.10.161','10.168.10.209','10.168.10.54','10.168.10.55','10.168.10.123'} good = 0 bad = 0 count = 0 badIp={} for url in ip: status, result原创 2017-09-14 18:13:08 · 3746 阅读 · 0 评论 -
Python爬取网页图片
import urllib.request import os import re import logging.configurl = r’http://www.h3c.com/cn/’ #爬取华三网站主页的图片imgPath = r’F:\img’imgHtml = urllib.request.urlopen(url).read().decode(‘utf-8’) #拿到网页的源代原创 2017-09-12 09:30:02 · 291 阅读 · 0 评论