自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

翻译 python+selenium实现百度关键词搜索自动化操作

from selenium import webdriverimport requests,timeimport random #自建IP池def get_proxy(): r = requests.get('http://127.0.0.1:5555/random') return r.textFILE = './hgip.txt'# 读取的txt文件路径# 获取代理IPdef proxy_ip(): ip_list = [] with op.

2021-01-01 17:34:23 494

转载 体育竞技分析,呀头疼

from random import randomdef printIntro(): print("这个程序模拟两个选手A和B的某种竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)")def getInputs(): a = eval(input("请输入选手A的能力值(0-1):")) b = eval(input("请输...

2019-05-13 10:46:28 89

原创 算法

# 对任意非负实数x,设法找到一个非负实数y,使得# |y * y-x|<e,其中e是事先给定的允许误差。def sqrt(x): y = 1.0 while abs(y * y - x) > 1e-6: y = (y + x/y)/2 return y# 输出测试一下print(sqrt(eval(input())))...

2019-04-25 09:00:00 85

转载 PeppaPig

# pyinstaller -i 图标名.ico -F 文件名.py# PeppaPig.pyimport turtle as timport time scale = 50#print("开始载入".center(scale//2,"-"))start = time.perf_counter()for i in range(scale + 1): a = '*' * i...

2019-04-17 20:05:04 139

原创 python---==抢红包

from aip import AipImageSearch#安装模块#pip install baidu_aipapp_id = ""api_key = ""secret_key = ""client = AipImageSearch(app_id,api_key,secret_key)txt = '惊鸿快来抢红包了,惊鸿快来啊!'result = client.synthesi...

2019-04-01 10:28:23 199

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除