Language grammar
cpp, sql, python
funny_programmer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
g++ 编译时,运行时链接顺序
实验(运行时) g++ -c -fPIC -o libshow.o libshow.cpp g++ -shared -o libshow.so libshow.o g++ -Wall -o code main.cpp -L$(pwd) -lshow ./code 无法执行,提示找不到so。 LD_LIBRARY_PATH=$(pwd) ./code 可以执行. 拷贝libshow.so到/usr/local/lib,运行失败,ldd也提示失败。 即使运行了ldconfig, 也没有用。移动到/usr/l原创 2021-05-19 22:20:26 · 455 阅读 · 0 评论 -
python 中的descriptor 详解
class Descriptor(): def get(self, obj, obj_class): if obj == None: return “method2 called by instance object” else: return “method2 callled by class object” class Bar(): m2 = Descriptor() def method(self): print("test") pass @classmethod def clsme原创 2021-04-23 15:49:56 · 357 阅读 · 1 评论
分享