摘要: 仅供个人学习研究使用 from Crypto.Cipher import AES # 非对称加密 import rsa # 对成加密 import execjs # PyExecJs可以使用Python模拟运行js代码 import base64 import requests first_para 阅读全文
posted @ 2021-01-05 22:09 旁人怎会懂 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 斗鱼直播主播信息采集 from selenium import webdriver import time from lxml import etree from excel_utils.excel_utils import write_to_excel,append_to_excel import 阅读全文
posted @ 2021-01-05 21:58 旁人怎会懂 阅读(95) 评论(0) 推荐(0) 编辑
摘要: import requests proxies = { "http": 'http://111.72.137.232:4251'} r = requests.get('http://httpbin.org/ip', proxies=proxies) print(r.text) 阅读全文
posted @ 2021-01-05 21:54 旁人怎会懂 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 利用python实现飞机大战游戏 import pygame import sys import time import random #初始化 pygame.init() pygame.font.init() size=width,height = 480,652 background = pyg 阅读全文
posted @ 2021-01-05 21:51 旁人怎会懂 阅读(77) 评论(0) 推荐(0) 编辑
摘要: import time tick = 100 def func1(): global tick for i in range(100): lock.acquire() tick +=5 #外部传进来,变成自己的局部变量,与外部无关 time.sleep(0.01) tick -=5 lock.rel 阅读全文
posted @ 2021-01-05 21:48 旁人怎会懂 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 仅供学习与参考,随时间变化可能失效 #所有英雄ID '''https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js https://lol.qq.com/data/info-defail.shtml?id=61 https:/ 阅读全文
posted @ 2021-01-05 21:44 旁人怎会懂 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 二叉排序树 # 节点 class Node: def __init__(self, elem): self.elem = elem self.left = None self.right = None # 二叉排序树 class BinarySearchTree: def __init__(self 阅读全文
posted @ 2021-01-05 21:12 旁人怎会懂 阅读(265) 评论(0) 推荐(0) 编辑
摘要: python岗位数据分析报告 数据集为针对智联,boss,拉勾三个招聘网站的爬取, 爬取关键字段:语言为python,java,c;城市为 北上广深郑杭; 数据分类保存在 ‘’python招聘数据.xlsx‘’ 表格中 研究问题 : 一. python相关岗位(数据分析,数据挖掘,开发工程师)地区( 阅读全文
posted @ 2021-01-04 19:19 旁人怎会懂 阅读(257) 评论(0) 推荐(0) 编辑
摘要: def bubble_alist(alist): n = len(alist) for j in range(n - 1, 0, -1): for i in range(j): if alist[i] > alist[i + 1]: alist[i + 1], alist[i] = alist[i] 阅读全文
posted @ 2020-12-30 21:00 旁人怎会懂 阅读(59) 评论(0) 推荐(0) 编辑
摘要: # 操作对象,排序顺序表 list alist = [17, 17, 20, 26, 31, 44, 44, 54, 55, 77, 93] # 递归二分查找 def binary_search(list1, num): length = len(list1) - 1 # 当元素为空时,没有找到返回 阅读全文
posted @ 2020-12-30 20:58 旁人怎会懂 阅读(73) 评论(0) 推荐(0) 编辑