摘要: 在使用flask-SQLAlchemy库的时候,经常苦恼于该库的creat_all()方法不能对项目中的新建库进行修改,drop_all()又会对数据进行删除,这非常的不方便,万幸,Flask-SQLAlchemy的开发者同时开发了flask-migrate库,用于数据库的迁移。本文为windows 阅读全文
posted @ 2019-01-13 17:11 守功 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 文档注释的结构 文档注释主体的开头是一句话,概述类型或成员的作用,应自成一体。后面可跟其他句子或段落,用以详细说明类、接口、方法或字段。 除了这些描述性的段落以外,后也可跟其他段落,数量不限,并且每段以一个特殊的文档注释标签开头,如@author、@param、@returns。这些包含标签的段落提 阅读全文
posted @ 2018-11-07 16:25 守功 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 最近,在学习使用thinkcmf的时候,使用composer安装第三方类库,遇到了需要输入验证码的问题,援引https://laravel-china.org/topics/17893该链接中的讨论,整理后,得到了有效的方式,并参考了该博客的内容,http://www.cnblogs.com/cai 阅读全文
posted @ 2018-10-15 23:20 守功 阅读(443) 评论(0) 推荐(0) 编辑
摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2018-09-07 00:02 守功 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making 阅读全文
posted @ 2018-09-06 01:42 守功 阅读(131) 评论(0) 推荐(0) 编辑
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2018-09-05 19:18 守功 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 题目描述 This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case 阅读全文
posted @ 2018-08-28 22:26 守功 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 二叉查找树(BST) 特殊的二叉树,又称为排序二叉树、二叉搜索树、二叉排序树。 二叉查找树实际上是数据域有序的二叉树,即对树上的每个结点,都满足其左子树上所有结点的数据域均小于或等于根结点的数据域,右子树上所有结点的数据域均大于根结点的数据域。如下图所示: 二叉查找树通常包含查找、插入、建树和删除操 阅读全文
posted @ 2018-08-09 16:46 守功 阅读(15258) 评论(7) 推荐(0) 编辑
摘要: 问题描述 Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national 阅读全文
posted @ 2018-08-05 00:10 守功 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 前缀表达式(波兰表达式)、中缀表达式、后缀表达式(逆波兰表达式) 介绍 三种表达式都是四则运算的表达方式,用以四则运算表达式求值,即数学表达式的求解。 前缀表达式 前缀表达式是一种没有括号的算术表达式,与中缀表达式不同的是,其将运算符写在前面,操作数写在后面。为纪念其发明者波兰数学家Jan Luka 阅读全文
posted @ 2018-08-03 11:24 守功 阅读(5313) 评论(0) 推荐(1) 编辑