posts - 9,  comments - 0,  views - 2819
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
07 2018 档案
Python 运算符与基本类型
摘要:a=0 赋值 a>1 a<1 a<=1 a>=1 a!=1 a > 1 and a<5 a<1 or a>5 a='asdasd' 'as' in a 阅读全文
posted @ 2018-07-22 10:29 何方明月 阅读(80) 评论(0) 推荐(0) 编辑
使用自环接口的UDP服务器和客户端
摘要:# 使用自换接口的UDP服务器和客户端 # UDP client and server on localhost # 本地主机上的UDP客户端和服务器 import sys import argparse #命令行选项与参数解析 import socket #套接字 from datetime import date... 阅读全文
posted @ 2018-07-20 18:03 何方明月 阅读(285) 评论(0) 推荐(0) 编辑
批量修改文件后缀名
摘要:import os def look_name(): os.chdir(path) print('路径:',os.getcwd()) for i in os.listdir(os.getcwd()): print(i) def all_name(): for i in os.listdir(os.getcwd()): end=i.r... 阅读全文
posted @ 2018-07-18 17:24 何方明月 阅读(238) 评论(0) 推荐(0) 编辑
汽车之家 爬虫
摘要:import requestsfrom bs4 import BeautifulSoupdict_s = {'Upgrade-Insecure-Requests':' 1','Referer':'https://www.696cf.com/htm/downlist6/', 'User - Agent 阅读全文
posted @ 2018-07-16 11:03 何方明月 阅读(533) 评论(0) 推荐(0) 编辑
Beautiful Soup 学习历程说明
摘要:import requests from bs4 import BeautifulSoup '''Beautiful Soup 学习说明历程 说明在下''' # 拿到 = requests.get('https://www.autohome.com.cn/all/') # # 拿到.encoding='gbk' # # soup = BeautifulSoup(拿到.text,'html... 阅读全文
posted @ 2018-07-16 11:02 何方明月 阅读(190) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示