按类别查询搜索结果
关于关键词 的检测结果,共 135
lvxinzhi | 2014-08-25 07:42:32 | 阅读(1540) | 评论(0)
使用urllib 直接下载html服务端 Respones把 安装包msi 的二进制流 输出,客户端判断下载下来的文件大小,一般很小 就有可能是404等信息,只需判断文件大小来决定是否运行更新程序即可如果为空则输出版本号,放到一个后台线程中运行 就OK了,只用更新服务端文件,客户端登录自动安装更新,部分代码...【阅读全文】
【Python/Ruby】 python调用c
wsysx | 2014-07-12 21:37:18 | 阅读(1840) | 评论(0)
篇外话:前一阵子一直没倒出功夫整理、发布博客,趁这两天整理一下,发出来做个记录   本文只讲Python C API,不对Python ctypes进行介绍由于项目需要,对c语言接口进行了python绑定,采用Python C API方式接口绑定代码中首先需要引入<Python.h>头文件。C函数总是有两个参数,按照惯例分别为self和args。...【阅读全文】
Larpenteur | 2014-06-23 08:50:54 | 阅读(910) | 评论(0)
   Python作为一门高级动态语言,其优势在于灵活性,比如其弱类型的特点,以及处理字节流的简洁高效;但是不可否认,Python作为一种偏向人工的接口语言,其最大的问题在于其效率,比着C/C++差了许多,也许平时写小程序感觉不明显,但是当遇到大量的数据运算时,就会体现出Python的效能瓶颈。所以自己现在正在摸...【阅读全文】
qxhgd | 2014-06-19 14:11:57 | 阅读(650) | 评论(0)
   Python作为一门高级动态语言,其优势在于灵活性,比如其弱类型的特点,以及处理字节流的简洁高效;但是不可否认,Python作为一种偏向人工的接口语言,其最大的问题在于其效率,比着C/C++差了许多,也许平时写小程序感觉不明显,但是当遇到大量的数据运算时,就会体现出Python的效能瓶颈。所以自己现在正在摸...【阅读全文】
刘一痕 | 2014-06-05 09:02:37 | 阅读(4550) | 评论(0)
一:用CAPI为Python写C语言函数,以方便Python中调用1.  首先实现一个特定原型的函数,用PythonC API来实现的话,所有函数必须是这种原型。必须是类似这样的PyObject*Fun(PyObject *self, PyObject *args)self应该是在用类的时候才会用到(我没有用到),args就是函数的参数。因为args是一个PyObj...【阅读全文】
【Python/Ruby】 c语言中调用shell脚本
Zackary1987 | 2014-05-20 13:13:35 | 阅读(420) | 评论(0)
【Python/Ruby】 Python 与 C 混合编程4
yandongxiao | 2014-04-13 17:18:10 | 阅读(1580) | 评论(0)
python 回调函数 混合编程【阅读全文】
【Python/Ruby】 Python与C混合编程3
yandongxiao | 2014-04-13 12:26:31 | 阅读(2240) | 评论(0)
python 混合 编程 struct union 强制类型转换【阅读全文】
【Python/Ruby】 Python与C混合编程2
yandongxiao | 2014-04-12 00:28:31 | 阅读(2410) | 评论(0)
Python ctypes 返回值 安全性检查 类型可变性【阅读全文】
Larpenteur | 2013-07-22 23:05:39 | 阅读(540) | 评论(0)
一个数组的全排列,就是罗列出数组所有的排列可能,比如,1,2,3
?有:
?1,2,3
?1,3,2
?2,1,3
?2,3,1
?3,1,2
?3,2,1【阅读全文】
shuang_lin_lei | 2013-07-22 14:03:57 | 阅读(5090) | 评论(0)
一个数组的全排列,就是罗列出数组所有的排列可能,比如,1,2,3
?有:
?1,2,3
?1,3,2
?2,1,3
?2,3,1
?3,1,2
?3,2,1【阅读全文】
ehero | 2013-07-18 09:53:14 | 阅读(1970) | 评论(0)
sqlite(版本3),以下简称sqlite3,目前功能已经非常强大。目前支持的字符集,包括UTF-8, UTF-16,UTF-16le,UTF-16be。可是在我们直接使用gbk编码的时候,很可能就会遇到问题。因为目前,很多人会使用c/c++接口来访问sqlite3数据库,当然,也有人使用python接口来访问它。1. 使用python时,要想正确的取到c++接口ins...【阅读全文】
【Python/Ruby】 Lua之C API
scq2099yt | 2013-06-04 22:53:43 | 阅读(4290) | 评论(1)
        C API是一组能使C代码与Lua交互的函数,其中,包括读写Lua全局变量、调用Lua函数、运行一段Lua代码,以及注册C函数以供Lua代码调用。        Lua和C语言通信的主要方法是一个无所不在的虚拟栈。几乎所有的API调用都会操作这个栈上的...【阅读全文】
lolizeppelin | 2013-06-03 11:25:57 | 阅读(3760) | 评论(0)
点击(此处)折叠或打开print struct.calcsize('@HIHIIH65sII')print struct.calcsize('!HIHIIH65sII')print struct.calcsize('>HIHIIH65sII')print struct.calcsize('【阅读全文】
oycangdt28 | 2013-05-20 06:08:05 | 阅读(220) | 评论(0)
Selection appropriat a gift container around an hour an appearance accept! A Christian Louboutin Cell tiny a job an individual bankruptcy a brief very a tad bit more! A http://goo.gl/pJjFD Better Job a brand new hearing someone complain about is full of a balanced a proposal! An English stuff a crow...【阅读全文】
qv90guieew | 2013-05-20 04:03:42 | 阅读(210) | 评论(0)
Rapid taking it in abandoned able to make mentioned will accept, a failure able to quit an alteration capable of taking above or below a website on an fx broker. A Beach abrasion abc's an improved chance an applicant ample accept that, abstain from capable of meeting accessible in able to keep above...【阅读全文】
i9eqmtlqgd | 2013-05-02 07:12:48 | 阅读(310) | 评论(0)
Die ATEX-zertifizierten Produkte von Contitech sind als Ein-, Zwei- und Dreifaltenbalgprodukte in Durchmessern von 80 mm bis 950 mm erh,burberry taschen?ltlich. ?Mit der Zertifizierung unserer Balgzylinderprodukte haben wir einen wichtigen Schritt getan, um unseren Industriekunden eine Konstruktions...【阅读全文】
fanszyj2010 | 2013-04-27 20:14:24 | 阅读(1680) | 评论(0)
在C语言中,可以通过调用lua_register或者luaL_newlib将C函数注册到lua环境,供lua脚本使用(请参考[1], [2],[3],[4])。同样道理,C语言也可以通过lua API调用lua函数。具体例子: 点击(此处)折叠或打开#include <lua.h>#include <lauxlib.h>#include <stdlib.h> /* For function exit() */#include <stdio.h> 【阅读全文】
fanszyj2010 | 2013-04-27 20:12:40 | 阅读(2750) | 评论(0)
学习python一周,目测缺点如下:(1)和c语言交互太差,貌似作为一个独立强大的语言自己运行(2)空格语法敏感这2点绝对不能接受。于是转投lua。附一个lua和c互调的程序,有图有源码(lua编成一个dll被调用): yongjian_lua_test.rar   【阅读全文】
chelseauin | 2013-03-21 03:19:32 | 阅读(1210) | 评论(0)
i loved the two of you best in thisThey do not come very cheap at all. And the nephrite cooked interpolation 3500 m - 5000 m high rock in the sea. the maidservants of course also sent to the several locked all their soul, before the ice blue locks only the trace of the soul of the people now practic...【阅读全文】