# -*- conding:utf-8-*-import subprocessdef getpid_windows(process_name): """利用cmd_str = tasklist|find /i "xdict.exe" 来查找windows平台的进程id""" cmd_line = '...
分类:
其他好文 时间:
2014-07-23 12:53:36
阅读次数:
242
COM组件程序:模块,它可以是 动态连接库(DLL) && 可执行程序(EXE),称为 进程内组件(in-of-process component) && 进程外组件(out-of-process component)。 COM对象:建立在二进制可执行代码级的基础上,因此COM对象是语言无关的...
分类:
其他好文 时间:
2014-07-23 12:23:06
阅读次数:
244
一、获取当前文件的路径1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径。可获得当前执行的exe的文件名。2. System.Environment.CurrentDirectory 获...
分类:
其他好文 时间:
2014-07-22 23:26:17
阅读次数:
295
【UV mapping】 UV mappingis the3D modelingprocess of making a 2D image representation of a 3D model's surface. This process projects atexture maponto .....
分类:
移动开发 时间:
2014-07-22 22:45:15
阅读次数:
303
这个函数处理这种情况,对于一个选择,SELECT * FROM TEST_A,TEST_B,TEST_C,TEST_D WHERE (A=1 AND B=1) OR (A=1 AND C=1) OR (A=1 AND D=1);
语句中的WHERE条件:(A=1 AND B=1) OR (A=1 AND C=1) OR (A=1 AND D=1)可以改写为(A=1)AND (B=1 OR C=1 OR D=1)...
分类:
数据库 时间:
2014-07-22 17:44:42
阅读次数:
394
这里说下几个基本的文件配置 1 config/local.js 这个文件是本地环境配置 config/local.js的配置: ????port:?process.env.PORT?||?1339,
????environment:?process.env.NODE_ENV?||?‘development‘,
...
分类:
Web程序 时间:
2014-07-22 08:37:35
阅读次数:
400
典型用法: import fileinput
for line in fileinput.input():
process(line) input 参数为空时,获取sys.argv[1:] 作为参数。如果文件名是“-”也是从标准输入获取参数。 input参数可以是一个List,也可以是...
分类:
编程语言 时间:
2014-07-22 08:25:35
阅读次数:
183
说明:本文依然依赖于 contiki/platform/native/contiki-main.c 文件。-------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2014-07-22 00:02:34
阅读次数:
337
PHP: echo Json_encode($result);Jquery:$.get( 'process.php', {'p1':'aa','p2':'dd', 'data_type':'json'}, function(data){ ...
分类:
Web程序 时间:
2014-07-21 23:31:01
阅读次数:
232
The Complete Diffie-Hellman Key Exchange Diagram The process begins when each side of the communication generates a private key. Each side then genera...
分类:
其他好文 时间:
2014-07-21 08:16:46
阅读次数:
287