我就在这里
发布时间:2013-01-10 21:49:54
A:如何使用zlib模块来进行压缩解压了? Q:1.使用zlib.compress可以压缩字符串。使用zlib.decompress可以解压字符串。 压缩解压字符串示范代码:import zlibmessage = 'witch which has which witches wrist watch'compressed = zlib.compress(message) decompressed = zlib.decompress(compressed) print 'original:', repr(message) print 'compr......【阅读全文】
发布时间:2013-01-09 21:52:25
本方法可以实现在任何时候,即无论你的窗口是不是当前获得焦点的窗口,还是处于系统图标区,只要用户按下热键,都将触发窗口中的事件,在本例中实现窗口的状态切换。 1、首先我们必须声明Windows API的外部函数: FUNCTION Integer GlobalAddAtom(ref string lpString) LIBRARY "kernel32.dll" ALIAS FOR "GlobalAddAtomA" FUNCTION ulong RegisterHotKey(ulong hwnd,ulong id,ulong fsModifiers,ulong vk) LIBRARY "use......【阅读全文】
发布时间:2013-01-08 16:36:31
转自:http://wuhongyu.iteye.com/blog/8067911、字符串转inputStream Java代码 String string; //...... InputStream is = new ByteArrayInputStream(string.getBytes()); 2、InputStream转字符串 Java代码 ByteArrayOutputStream&......【阅读全文】
发布时间:2013-01-08 16:36:00
函数声明 Function long SHGetSpecialFolderLocation (Long hwndOwner, Integer nFolder, ref Long ppidl) library "shell32.dll" Function long SHGetPathFromIDList(long pidl, ref String szPath) library "shell32.dll" Alias for "SHGetPathFromIDListA......【阅读全文】
发布时间:2013-01-08 08:38:00
函数声明 Function long SHGetSpecialFolderLocation (Long hwndOwner, Integer nFolder, ref Long ppidl) library "shell32.dll" Function long SHGetPathFromIDList(long pidl, ref String szPath) library "shell32.dll" Alias for "SHGetPathFromIDListA......【阅读全文】