(1).h需要引用其他的.hextern "C" int32_t __declspec(dllexport) Encode(const General::Protocol::JTT_808_2011::CMsg0001::SMsg &msg, uint8_t *dstData, uint32_t d...
分类:
编程语言 时间:
2014-08-13 21:41:38
阅读次数:
227
NumPy 下载地址:http://sourceforge.net/projects/numpy/files/NumPy/1.8.1/SciPy下载地址:http://sourceforge.net/projects/scipy/files/scipy/0.14.0/Matplotlib下载地址:h...
分类:
编程语言 时间:
2014-08-13 14:50:26
阅读次数:
286
py2exe在sourceforge 的下载只支持到2.7。 针对python3.0+的版本,需要自己编译。 1.下载源码 svn checkout svn://svn.code.sf.net/p/py2exe/svn/trunk py2exe-svn 2.编译环境 这里使用的是vs2014. 3.安装 进入p...
分类:
编程语言 时间:
2014-08-12 22:21:14
阅读次数:
467
1 std::string UrlEncode(const std::string& szToEncode) 2 { 3 std::string src = szToEncode; 4 char hex[] = "0123456789ABCDEF"; 5 string ds...
分类:
编程语言 时间:
2014-08-12 18:54:24
阅读次数:
300
python3之前的版本用Tkinter,之后用的是tkinter最简单的使用Tkinter的代码,首先要Tk()建立一个窗口,然后加进各种Widgetfrom Tkinter import *window = Tk()label = Label(window, text = "Welcome to...
分类:
编程语言 时间:
2014-08-12 12:47:44
阅读次数:
377
Debian 7 自带的python是2.7.3,要用最新的3.4版本怎么办?我们从官网下载压缩包自己编译。一、安装编译用的包1 $ sudo apt-get install build-essential2 $ sudo apt-get install libncurses5-dev libncu...
分类:
编程语言 时间:
2014-08-12 00:13:43
阅读次数:
234
为了装个matplotlib包,搞了好久;python3.4,官方没有对应版本的包,只能去下面这个地方下对应的版本:http://www.lfd.uci.edu/~gohlke/pythonlibs/下载试了下,后发现出错,好像还缺个numpy的包python 3.4 numpy官方也没有对应版本,...
分类:
编程语言 时间:
2014-08-11 23:57:33
阅读次数:
451
php 自带的字符串翻转函数 strrev() 只支持英文,不支持中文,在网上找到了一个方法,支持中英文: <?php
function?reverse($str,?$encode?=?‘UTF-8‘)?{
????$n?=?mb_strlen($str,?$encode);
????...
分类:
Web程序 时间:
2014-08-11 15:27:12
阅读次数:
231
QuadtreesA quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into fou...
分类:
其他好文 时间:
2014-08-10 18:22:30
阅读次数:
250
python3 print输出unicode字符时出现以下错误:UnicodeEncodeError: 'gbk' codec can't encode character '\u30fb解决方法:sys.stdout = io.TextIOWrapper(sys.stdout.buffer, er...
分类:
编程语言 时间:
2014-08-08 12:21:35
阅读次数:
431