上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: app/models.py self.confirmed = True db.session.add(self) db.session.commit() 这里的数据修改完后必须commit提交上去,不然confirmed的值还是为False 阅读全文
posted @ 2017-01-18 16:27 小黄人python 阅读(301) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/36797982/flask-sqlalchemy-how-to-insert-and-query-utf8-string 阅读全文
posted @ 2017-01-16 14:05 小黄人python 阅读(203) 评论(0) 推荐(0) 编辑
摘要: docker的安装见官方文档 我使用的系统为Ubuntu16.04 Ubuntu系统安装docker文档地址:https://docs.docker.com/engine/installation/linux/ubuntulinux/ Ubuntu的版本必须和文档中提到的要一致 1.查找相关的Ubu 阅读全文
posted @ 2017-01-04 11:22 小黄人python 阅读(2227) 评论(0) 推荐(0) 编辑
摘要: Docker的Ubuntu镜像安装的容器无ifconfig命令和ping命令 解决: apt-get update apt install net-tools # ifconfig apt install iputils-ping # ping 阅读全文
posted @ 2017-01-03 22:31 小黄人python 阅读(27796) 评论(1) 推荐(2) 编辑
摘要: 利用高德地图web服务api实现地理/逆地址编码 api使用具体方法请查看官方文档 文档网址:http://lbs.amap.com/api/webservice/guide/api/georegeo/ 1.利用python第三方库requests实现 Requests库文档地址:http://ww 阅读全文
posted @ 2017-01-01 21:37 小黄人python 阅读(21310) 评论(1) 推荐(0) 编辑
摘要: 插入元素:末尾插入, 向上筛选(siftup) 弹出元素:堆顶弹出, 末尾元素充当堆顶, 向下筛选(siftdown) 阅读全文
posted @ 2016-12-03 17:39 小黄人python 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 4 #Author: Minion-Xu 5 #list实现优先队列 6 7 class ListPriQueueValueError(ValueError): 8 pass 9 10 class List_Pri_Queue(object): 11 de... 阅读全文
posted @ 2016-12-03 17:25 小黄人python 阅读(1255) 评论(1) 推荐(0) 编辑
摘要: 堆排序: 构建堆序, 堆顶弹出, 放在堆尾, (原)堆尾元素, 充当堆顶,向下筛选(siftdown) 阅读全文
posted @ 2016-12-02 17:38 小黄人python 阅读(2831) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 4 def make_sum(a, b): 5 return ['+', a, b] 6 7 def make_prod(a, b): 8 return ['*', a, b] 9 10 def make_diff(a, b): 11... 阅读全文
posted @ 2016-12-02 15:19 小黄人python 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: 基于python的list实现二叉树 阅读全文
posted @ 2016-12-02 10:41 小黄人python 阅读(1379) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页