![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 66
watermelon-lf
这个作者很懒,什么都没留下…
展开
-
python 实现http请求,获取新浪界面(socket,while循环)
import socket,time #coding:UTF-8 #发送的http包头 header_send='GET / HTTP/1.1\r\nHost: www.sina.com.cn\r\nConnection: close\r\n\r\n' i=0 #请求次数 num=1 #请求间隔 tinktime=1 #目的地址 ip_dst='www.sina.com.cn'原创 2017-03-03 09:50:31 · 1544 阅读 · 0 评论 -
python 指定目录查找文件,并打印(os for os.open chdir)
使用python查找文件,并打印原创 2017-03-06 11:09:38 · 301 阅读 · 0 评论 -
python 实现dns解析,dns_request(socket getaddrinfo whiel)
python 实现dns解析,dns_request原创 2017-03-06 11:35:37 · 1029 阅读 · 0 评论 -
python 实现ssh登陆,并执行命令(paramiko)
#coding:UTF-8 import paramiko,time host='192.168.5.28' port=2222 name='root' passwd='abc' cmd=['cd /usr','pwd'] s=paramiko.SSHClient() s.set_missing_host_key_policy(paramiko.AutoAddPolicy())转载 2017-03-15 15:20:34 · 1460 阅读 · 0 评论