![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 70
hugh___
这个作者很懒,什么都没留下…
展开
-
python 用socket向网页发送 GET 请求
web 客户端程序''' send request 'GET' to www.baidu.com and save the receved content to a txt file ''' from socket import * import sys header_send = b'GET / HTTP/1.1\r\nHost: www.baidu.com\r\nConnection: c...原创 2018-06-12 10:06:58 · 4241 阅读 · 0 评论 -
python 客户端FTP程序
代码取自 Python核心编程import ftplib import socket import os HOST = 'ftp.sjtu.edu.cn' DIRN = 'pub/.mirror1/ftp.debian.org/debian' FILE = 'README.mirrors.txt' def main(): try: f = ftplib.FTP(HOST) except...翻译 2018-06-26 15:42:16 · 561 阅读 · 0 评论