会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
九尘
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
9
10
11
12
13
14
15
16
17
···
32
下一页
2019年10月12日
算法基础
摘要: 算法基础 时间复杂度 循环减半
阅读全文
posted @ 2019-10-12 08:06 jiuchen
阅读(92)
评论(0)
推荐(0)
编辑
2019年10月11日
排序
摘要: 排序 ''' 4.根据用户id对用户类进行排序 ''' class User: def __init__(self,user_id): self.user_id=user_id def __repr__(self): return 'User({})'.format(self.user_id) de
阅读全文
posted @ 2019-10-11 22:53 jiuchen
阅读(75)
评论(0)
推荐(0)
编辑
python 数据类型
摘要: 数据类型 类型判断 #类型判断 a=5 r=isinstance(a,int) print(r) #范围判断 r2=isinstance(a,(int,float)) print(r2) 字符串 列表 常规操作 列表转为变量 ''' 列表拆分为变量 ''' l2=[1,2,3] a,*c=l2 pr
阅读全文
posted @ 2019-10-11 22:49 jiuchen
阅读(182)
评论(0)
推荐(0)
编辑
2019年10月9日
时间控件
摘要: jquery 插件 时间控件 1.bootstrap-datepicker 参考:https://uxsolutions.github.io/bootstrap-datepicker 2.jquery时间插件 参考:https://www.cnblogs.com/qinmengjiao123-123
阅读全文
posted @ 2019-10-09 10:45 jiuchen
阅读(308)
评论(0)
推荐(0)
编辑
2019年10月7日
scrapy 使用
摘要: scrapy框架 安装 使用 xpath 参考https://www.jianshu.com/p/85a3004b5c06 注意 1.win10 python 【scrapy crawl chouti --nolog 】 cmd 命令不执行parse函数(没有内容输出) 原因 设置settings.
阅读全文
posted @ 2019-10-07 14:22 jiuchen
阅读(120)
评论(0)
推荐(0)
编辑
2019年10月6日
python http
摘要: 数据传输 data: request.post( url='xx', data={'k1':'v1,'k2':'v2'} ) #数据: POST / http1.1\r\n....\r\n\r\nk1=v1&k2=v2 request.post( url='xx', data=json.dumps(
阅读全文
posted @ 2019-10-06 10:40 jiuchen
阅读(150)
评论(0)
推荐(0)
编辑
python 常用模块
摘要: 常用模块 importlib 模块导入 1.创建包xx2.创建模块oo.py NAME = "小黑" class Person(object): def __init__(self, name): self.name = name def dream(self): print("{}在做美梦!".f
阅读全文
posted @ 2019-10-06 10:14 jiuchen
阅读(210)
评论(0)
推荐(0)
编辑
2019年10月5日
python 正则
摘要: 正则 常用方法 1.findall() 返回结果为列表 ''' 内容提取 ''' data='window.QRLogin.code = 200; window.QRLogin.uuid = "gbGEZLvmhQ==";' import re ret=re.findall('uuid = "(.*
阅读全文
posted @ 2019-10-05 19:13 jiuchen
阅读(148)
评论(0)
推荐(0)
编辑
python qrcode二维码生成与识别
摘要: 二维码 二维码生成 1.用法 https://github.com/lincolnloop/python-qrcode 2.使用 简单实用 import qrcode # 二维码内容 data = "https://www.baidu.com" # 生成二维码 img = qrcode.make(d
阅读全文
posted @ 2019-10-05 14:56 jiuchen
阅读(1139)
评论(1)
推荐(0)
编辑
python 轮询,长轮询
摘要: 轮询相关 用于消息和投票等 轮询 1.采用js 定时请求。 html <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Title</title> <meta name="viewport" conten
阅读全文
posted @ 2019-10-05 10:58 jiuchen
阅读(1285)
评论(0)
推荐(0)
编辑
上一页
1
···
9
10
11
12
13
14
15
16
17
···
32
下一页
公告