1、全景图不能显示报错: android.view.InflateException: Binary XML file line #6: Error inflating class com.baidu.lbsapi.panoramaview.PanoramaViewCaused by: java.l ...
分类:
其他好文 时间:
2017-07-08 19:17:28
阅读次数:
336
1.安装Pillow 2.安装tesseract-ocr github地址: https://github.com/tesseract-ocr/tesseract You can either Install Tesseract via pre-built binary package or bui ...
分类:
编程语言 时间:
2017-07-08 13:28:29
阅读次数:
3568
Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \ 2 3 \ 5 All root-to-leaf paths are:["1->2->5", ... ...
分类:
其他好文 时间:
2017-07-08 13:25:16
阅读次数:
142
Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define ...
分类:
其他好文 时间:
2017-07-08 10:08:46
阅读次数:
216
题目见这里 (分析) 分四步进行: 1)根据给定的结点情况建二叉树 2)对输入的键值排序(asending) 3)对二叉树中序遍历,同时对应赋key值 4)层次遍历(队列应用) 题目并不困难,但是我误入了trick,错误假定了结点按先序遍历是按顺序编号的(当然是受样例的影响),所以有了下面22分(满 ...
分类:
其他好文 时间:
2017-07-08 00:19:46
阅读次数:
260
BCD码(Binary-Coded Decimal?)亦称二进码十进数或二-十进制代码,是用4位二进制数来表示1位十进制数中的0~9这10个数码,用一种使用二进制编码十进制的数字编码形式。BCD码这种编码形式利用四个位元来储存一个十进制的数码,从而使二进制和十进制之间的转换得以更加快捷地进行。相对于 ...
分类:
其他好文 时间:
2017-07-07 23:36:25
阅读次数:
314
https://leetcode.com/problems/binary-search-tree-iterator/#/description Implement an iterator over a binary search tree (BST). Your iterator will be i ...
分类:
其他好文 时间:
2017-07-07 23:31:59
阅读次数:
208
在Oracle中有些字段不是必填时在用户使用的时候会出现数据null的情况。这个时候在Oracle中是无法进行插入的。 在Mybatis也明文建议在映射字段数据时需要将JdbcType属性加上。这样相对来说是比较安全的。 如: 以下情况是在保证了前四种是不能为空的前提下,而后面几项为空时也不至于程序 ...
分类:
数据库 时间:
2017-07-07 22:45:37
阅读次数:
307
Python 数据库框架 大多数的数据库引擎都有对应的 Python 包,包括开源包和商业包。Flask 并不限制你使用何种类型的数据库包,因此可以根据自己的喜好选择使用 MySQL、Postgres、SQLite、Redis、MongoDB 或者 CouchDB。 如果这些都无法满足需求,还有一些 ...
分类:
数据库 时间:
2017-07-07 21:23:29
阅读次数:
332
#! /bin/shday_str=`date +%j`day=`date +%Y%m%d`days_str=`echo "$day_str % 60"|bc`cd /home/db_backupecho ${day}mysqldump --opt -hhostip -uusername -ppas ...
分类:
数据库 时间:
2017-07-07 13:24:30
阅读次数:
171