摘要: 简单的正则 代码如下: 1 import re 2 #提取出python 3 key="javapythonc++php" 4 re.findall('python',key)[0] 5 # ###################################################### 阅读全文
posted @ 2018-12-12 20:35 北伽 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、云打码平台注册开发者模式用户登录 2、建立项目,下载项目案列代码接口 代码如下: 1 import http.client, mimetypes, urllib, json, time, requests 2 3 ######################################### 阅读全文
posted @ 2018-12-12 20:31 北伽 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 代码工具:jupyter 抓包工具:fiddle 1:搜狗页面内容爬取 1 import requests 2 3 url='https://www.sogou.com/' 4 response=requests.get( 5 url=url 6 ) 7 text=response.text 8 t 阅读全文
posted @ 2018-12-10 19:45 北伽 阅读(207) 评论(0) 推荐(0) 编辑
摘要: mdo ctype mbo dy msc roll mre fresh mhe ader mhe aderwithBack mch eckbox mch eckbox_left mch eckbox_disabled mic on mof fcanvasall mof fcanvasmain mof 阅读全文
posted @ 2018-11-29 20:48 北伽 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: main主页面代码 1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <title>Document</title> 6 <meta name="viewport" content="width=de 阅读全文
posted @ 2018-11-29 20:46 北伽 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 后端代码AI代码: 1 from aip import AipSpeech 2 from aip import AipNlp 3 from uuid import uuid4 4 import tulin 5 import os 6 """ 你的 APPID AK SK """ 7 APP_ID = 阅读全文
posted @ 2018-11-27 20:53 北伽 阅读(318) 评论(0) 推荐(0) 编辑
摘要: MongoDB基本使用 进入mongo mongo 输入help可以看到基本操作命令: show dbs: 现实数据库列表 show collections: 显示当前数据库中的集合(类似关系数据库中的表) show users: 显示用户 use <db name>: 切换当前数据库 db.hel 阅读全文
posted @ 2018-11-27 20:17 北伽 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 人生苦短,我用Python(目录) 人生苦短,我用Python(目录) 目录 一、计算机基础 二、Python基础 三、函数 四、常用模块 五、模块和包 六、面向对象 七、网络编程socket 八、数据库 九、前端 十、Python Web框架 十一、版本控制--GIT 十二、爬虫 十三、前端框架之 阅读全文
posted @ 2018-11-26 17:53 北伽 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 单聊 1 from flask import Flask,request,render_template 2 from geventwebsocket.handler import WebSocketHandler 3 from gevent.pywsgi import WSGIServer 4 f 阅读全文
posted @ 2018-11-26 17:46 北伽 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 由于自己写的不太清楚,借用大神的流程做观看 详情见:https://www.processon.com/view/5ae87bcde4b019d3a91b8047 阅读全文
posted @ 2018-11-26 17:44 北伽 阅读(102) 评论(0) 推荐(0) 编辑