ChinaUnix.net
相关文章推荐:

python 调用program ID

BEGIN DBMS_SCHEDULER.create_program ( program_name => 'test_plsql2', program_type => 'PLSQL_BLOCK', program_action => 'BEGIN create table ccc as select * from aaa; END;', enabled => TRUE, comments => 'create using a PL/SQL block.'); END; / DBMS_SCHEDULER.create_job ( job_name => ...

by jionjion - Oracle - 2007-12-05 11:11:25 阅读(1616) 回复(0)

相关讨论

As i said in my previous post,I am posting the new sudoku program,which is written in python 2.5 programming language. array=[[0,2,0,0,4,0,0,5,0],[0,0,0,7,2,6,0,0,0],[0,0,7,0,9,0,6,0,0], [7,0,8,0,5,0,2,0,6],[9,0,0,0,0,0,0,0,4],[5,0,1,0,8,0,7,0,9], [0,0,6,0,1,0,8,0,0],[0,0,0,8,7,3,0,0,0],[0,7,0,0,6,0,0,4,0]] def Search(List,value): return List.__contains__(value) while(0 in [array[j] for i in...

by cobrawgl - Python文档中心 - 2009-04-06 17:17:04 阅读(1316) 回复(0)

1.os.system() 例如:os.system('ls') #如果再命令行下执行,结果直接打印出来 里面的参数即为DOS命令。这样的话是不能将得到的东西显示出来的。 但是如果是执行一些其他的操作DOS操作的话应该可以实现的哦@ 可以执行操作。 2.为了能够得到返回的结果集可以这样来处理的: os.popen() popen(command [, mode='r' [, bufsize]]) -> pipe >>>tmp = os.popen('ls *.py').readlines() >>>tmp 这样的话就可以将返回的值打印出来并...

by hkebao - Python文档中心 - 2009-01-20 22:45:27 阅读(6213) 回复(0)

以Windows平台下使用Visual C++6.0为例 C代码:如FOO.C #include /* Define the method table. */ static PyObject *foo_bar(PyObject *self, PyObject *args); static PyMethodDef FooMethods[] = {{"bar", foo_bar, METH_VARARGS},{NULL, NULL}}; /* Here's the initialization function. We don't need to do anything for our own needs, but python needs that method table. */ void initfoo() { (void) Py_InitModule(...

by linxh - Python文档中心 - 2006-10-02 01:15:45 阅读(1142) 回复(0)

test.DLL中封装了几个函数 int A() int B(int Handle, ref long Len_s1, ref long Len_s2) 其中,Handle是调用A后得到的句柄,需要传入到B中 python实现: import cytpes #加载DLL tt=ctypes.CDLL('C:\\python26\\test.dll') s1=A(); ss=ctypes.c_int() ssd=ctypes.c_int() s2=B(s1,ctypes.byref(ss),ctypes.byref(ssd)) 从s2的返回值来看,调用是成功的,但是ss,和ssd的值始终为零,请各位大虾帮帮忙看看是什么问题 [ 本...

by Heaice - Python - 2009-01-07 11:40:49 阅读(7453) 回复(18)

比喻一个目录下有 a.py和b.py b.py中包含一个 class bb: 调用1 现需要从a.py中直接执行b.py,是用os.system(filename)么 调用2 从a.py中引用 b.by中的 class bb 请问如何import相对路径调用

by wangyouqi - Python - 2008-06-16 12:02:01 阅读(2977) 回复(1)

我的python脚本为: #!c:\python25\python.exe import time def printHeader( title ): print """Content-type: text/html %s """ % title printHeader( "Current date and ...

by luotell - Python - 2008-03-04 15:16:55 阅读(1673) 回复(1)

费了一天的时间,想用Jpython生成的jar文件在java中调用,没有行能,既然行不通,那就反过来吧,在java中直接调用python程序,呵呵,成功了,现在拿出来与大家分享 Jpython jython2.2.1 JDK 1.5 以下是程序代码 python.java import java.util.List; import org.python.core.PyException; import org.python.core.PyInteger; import org.python.core.PyObject; import org.python.util.pythonInterpreter; public class python...

by lvxinzhi - Python - 2007-12-08 16:14:12 阅读(8334) 回复(0)

现在有一个通过IE启动的JAVA GUI(有一些表格和列表框等),和远程SERVER通信。 想用python做一个自动测试工具,从文件读入参数,填到GUI中,查看返回的结果。 不知道JAVA有什么接口比较方便于调用的。 google了一下,现在新的接口有JVMTI?感觉像COM类的会比较方便?

by zerodayz - Python - 2007-03-19 11:28:09 阅读(7375) 回复(4)

dll输出的函数有个参数是指针类型,比如 int testfunc(int i,int * j); 这个j是个输出参数。 在python中怎么提供这个参数啊?

by ahhha - Python - 2006-04-12 10:21:25 阅读(3760) 回复(3)

jython没人再做开发了,不想去学那玩意 有人知道python 怎么调用java接口吗? thanks a lot

by powerccna - Python - 2005-08-04 08:35:27 阅读(10050) 回复(5)