- 博客(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关注的人