- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 python调用so,dll
gcc sample.c -fPIC -shared -o libsample.solslibsample.so sample.cpythonfrom ctypes import *a=cdll.LoadLibrary('/home/zjg/workspace/sowork/libsample.so')a.gcd(1,2)#includeint gcd(
2017-12-31 20:55:05 1083
转载 gdb简单使用
转自:http://blog.csdn.net/feier7501/article/details/8531803#include #include void hello() { printf("hello\n"); } int fun(char *str) { char buf[10]
2017-12-27 10:03:30 575
原创 python3 动态模块导入与全局变量使用
动态导入有两种:1 __main__():f="demo.A"aa=__main__(f)aa.A.t()2 import importlib:import importlibf="demo.A"aa=importlib.import_module(f)aa.t()全局变量使用:global_list.py:size=NoneA.py:
2017-12-11 15:17:36 2706
原创 python3 函数调用(通过函数名)
经常用用到通过函数名来调用函数,像php一样,直接拿字符串$function1($parameter1);python3中也有类似的功能:def function2(name,age): print ('Hello {}! : age {}'.format(name,age))1method_name2 = 'function2'args = ['friend2'
2017-12-09 10:05:17 5384
原创 python tornado模板使用
1 可以执行语句,表达式语句:{% set a ="hello" %}使用:{{a}}表达式:{{a+" world"}}2 可以调用函数i)uimethod方式路由: import hello1 'ui-methods':hello1方法:hello1.py中def func(): return "hi"使用:html模板中{{func}}
2017-12-04 11:25:44 380
原创 phpstorm 远程开发及调试
1 服务器安装xdebugtar -xzf xdebug-2.1.4.tgzcd xdebug-2.1.4/find / -namephpize/usr/bin/phpize./configure --enable-xdebug --with-php-config=/usr/local/php5/bin/php-configmakemake installf
2017-12-01 14:40:27 682
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人