DLL中导出函数的声明有两种方式:一种为在函数声明中加上__declspec(dllexport),这里不再举例说明;另外一种方式是采用模块定义(.def)
文件声明,.def文件为链接器提供了有关被链接程序的导出、属性及其他方面的信息。 首先创建 一个DLL程序,.cpp中int __stdcal...
分类:
其他好文 时间:
2014-06-07 05:09:21
阅读次数:
185
const char* lookup[] = {" ", "", "abc", "def",
"ghi", "jkl", "mno", "pqrs", "tuv", "wxy...
分类:
其他好文 时间:
2014-06-07 05:04:11
阅读次数:
192
如下所示 给出2个解法
def euler_problem_18_1():
"""
this problem spend my half-day but noting to finished ,so bad
"""
rows = '''
3
7 4
2 4 6
100 5 9 3
'''
...
分类:
编程语言 时间:
2014-06-07 01:28:18
阅读次数:
261
无高见
1.缓存
from functools import wraps
lineseq = '==' * 20
def memo( func ):
cache = {}
@wraps( func )
def wrapper( *args ):
result = cache.get( args )
if resul...
分类:
编程语言 时间:
2014-06-05 11:07:06
阅读次数:
324
python解释器将__init__函数里的__z变量转成 _classname__z了,明白规则后外部依然可以通过实力对象来访问。
In [1]: class aa:
...: def __init__(self):
...: self.x = 10
...: self.y = 11
...: self.__z =...
分类:
编程语言 时间:
2014-06-05 10:25:10
阅读次数:
346
Euler 14的不同解法 ----所涉及的知识 1. yield 2.BF 3. decorator 4.cache 5.等等
def euler_problem_14():
"""
最直接粗暴的解法:就是直接如下所示了
"""
max_count = 1
max_value = 1
for i in xrange(10010...
分类:
编程语言 时间:
2014-06-05 04:46:16
阅读次数:
266
windows client 端口// Def_win_client_socket_test.cpp
: 定义控制台应用程序的入口点。//#include "stdafx.h"#include #pragma
comment(lib,"ws2_32.lib")#define PORT 4000#de...
最近在找点python语言练习的网站,发现这个网站不错
http://www.checkio.org/ 页面设计的也比较漂亮,比较适合学习python的语法知识。不过注册这个网站
开始就得解决一个python问题,不过很简单。1 #python3.3 is inside2 def checki...
分类:
编程语言 时间:
2014-05-31 21:06:09
阅读次数:
477
1 >>> from configparser import
ConfigParser, ExtendedInterpolation 2 >>> parser =
ConfigParser(interpolation=ExtendedInterpolation()) 3 >>> # the def....
分类:
编程语言 时间:
2014-05-31 20:01:47
阅读次数:
237
打开模拟器沙盒目录下面看看模拟器的沙盒文件夹在mac电脑上的什么位置。
文件都在个人用户名文件夹下的一个隐藏文件夹里,中文叫资源库,他的目录其实是Library。方法1可以设置显示隐藏文件,然后在Finder下直接打开。设置查看隐藏文件的方法如下:打开终端,输入命名
显示Mac隐藏文件的命令:def...
分类:
其他好文 时间:
2014-05-29 10:49:14
阅读次数:
200