http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-12-17 13:39:37
#include <iostream>#include <map>#include <sstream>#include <cctype>#include <algorithm>using namespace std;#define Py_INCREF(obj) obj->ob_refcnt++#define Py_DECREF(obj) obj->ob_refcnt--; #define Py_XINCREF(obj) {if obj==NULL ; \ else Py_INCREF(.........【阅读全文】
发布时间:2011-12-07 12:45:36
python的扩展 源文件 #include "Python.h" static char py_gcd_doc[]="Computes the gcd of two integers";static PyObject*py_gcd(PyObject *self,PyObject *args) { int x,y,r; if (!PyArg_ParseTuple(args,".........【阅读全文】
发布时间:2011-12-06 14:22:57
from datetime import *import timeprint date.maxprint date.minprint date.today()print date.fromtimestamp(time.time()) 结果:9999-12-310001-01-012011-12-062011-12-06 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.........【阅读全文】
发布时间:2011-12-06 10:23:15
在Linux中创建静态库和动态库范例 (hello.c)发表于 2010年05月31日 11:57 分类: 编程coding 统计: 0评/49阅 0人收藏此文章, 收藏此文章(?)我们通常把一些公用函数制作成函数库,供其它程序使用。函数库分为静态库和动态库两种。静态库在程序编译时会被连接到目标代码中,程序运行时将不再需要该静态库.........【阅读全文】
发布时间:2011-12-03 18:53:01
ORA-00054 resource busy and acquire with NOWAIT specified Cause 错误解决方法 1.查询被锁对象:select object_name,machine,s.sid,s.serial# from v$locked_object l,dba_objects o ,v$session swhere l.object_id = o.object_id and l.session_id=s.sid; 2.将查找的被.........【阅读全文】