摘要: 这个题两段代码:第一段我自己写的,电脑差点炸了。垃圾 第二段网友写的,1.7s得出答案。流弊啊 将两段代码贴在这里,供自己日后学习研究这种效率算法代码的超一流思路 第一段 # 电脑都快爆了,还没算出答案 def isfrime(x): # if x == 2: # return True for k 阅读全文
posted @ 2018-12-02 19:45 Alexisbusy 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 这些内容是自己当初学的时候用到的不多,因此记得不是很牢。这里一一列举下,做个笔记,内容在之后复习的时候会慢慢补上。好记性不如自己实战干一下~ 内容有这些: Flask、Tornado/异步请求库(aiohttp)/线程、进程/异步IO编程 具体内容希望可以日后相见`````(至于两边没有下文的js破 阅读全文
posted @ 2018-10-10 18:11 Alexisbusy 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 工具:google浏览器 + fiddler抓包工具 说明:这里不贴代码,【只讲思路!!!】 原始url = https://v.youku.com/v_show/id_XMzIwNjgyMDgwOA==.html? 【随便找的一部电影链接】称它为原始url 开始分析: 打开 fiddler ,然后 阅读全文
posted @ 2018-08-22 00:19 Alexisbusy 阅读(10430) 评论(2) 推荐(3) 编辑
摘要: 1 import requests 2 import os 3 from PIL import Image 4 import pytesseract 5 import re 6 7 rootUrl = xxx 8 # 构建登录页面url 9 loginUrl = rootUrl + '/sipopu 阅读全文
posted @ 2018-08-02 14:00 Alexisbusy 阅读(1156) 评论(1) 推荐(0) 编辑
摘要: 掏出了以前的小练习; 现在开始,每天复习下以前的爬虫练习,争取发现新的问题和可以优化的地方。 # -*- coding:utf-8 -*- import requests import chardet import csv from lxml import etree import re def g 阅读全文
posted @ 2018-07-20 22:17 Alexisbusy 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 刚才正准备对pycharm进行一番操作的时候,噔 噔磴噔噔 “no module define xxx” ,那我当然要把xxx给搞到pycharm上来啊, 不一会功夫 ,biu~ “[error] Microsoft Visual C++ 14.0 is required” ,于是! 就跑到互联网啊 阅读全文
posted @ 2018-07-07 15:12 Alexisbusy 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: 一、python3.5安装和配置 在安装的时候无意间发现了,python3.6没有给我自定义安装的机会,直接就C盘见;因此我选择了python3.5。<安装部分跳过,至于一条吃过痛苦的建议:不要放C和磁盘一定要标明标注分类有序放置>。 接下来,安装pip,这个东西对日后加载其他库非常方便,因此优先安 阅读全文
posted @ 2018-07-06 14:54 Alexisbusy 阅读(547) 评论(5) 推荐(0) 编辑
摘要: 昨天模拟书本上client和server交互的例子,代码明明是按照书上写的,可是就是出现了错误,像下面这样: # tcpserver from socket import * from time import ctime HOST ='' PORT = 6555 BUFSIZ = 2048 ADDR 阅读全文
posted @ 2018-03-22 19:51 Alexisbusy 阅读(392) 评论(0) 推荐(0) 编辑
摘要: hello,blogs 阅读全文
posted @ 2018-03-22 18:34 Alexisbusy 阅读(120) 评论(0) 推荐(0) 编辑