09 2017 档案
摘要:安装很简单,生成的.so文件会被安装到/usr/local/lib目录,记得修改/etc/profile。 安装过程会出现两个错误: What is makeinfo, and how do I get it? v.1.6.tar.gz compilation error on centos7
阅读全文
摘要:源文件test.cpp 编译生成带调试信息的可执行文件 启动gdb gdb命令 r, run, 运行程序 q, quit, 退出gdb l, llst,列出源码 参考资料: 用GDB调试程序(一) 用GDB调试程序(二) 用GDB调试程序(三) 用GDB调试程序(四)
阅读全文
摘要:整理一波g++编译参数 生成可执行文件a.out 生成可执行文件test 生成test.o 生成带调试信息的test.o 链接目标文件,生成可执行文件test 参考资料: gcc命令 GCC Command Options
阅读全文
摘要:id id(x)对应变量x所引用对象的内存地址。可以把id(x)看成变量x的身份标识。 is 有时在编程中需要与变量的身份标识打交道,但不是通过 id 函数,而是 is 操作符。 The operators is and is not test for object identity: x is y
阅读全文
摘要:Python中的变量有两个特点: 1. 无需声明 2. 不与类型绑定 变量名只是内存中具体对象的一个引用(reference)。 对于 a = 1,内存模型如下: 对于 内存模型如下: 可以通过id(x)获取变量x所引用对象的内存地址 输出如下: address of the object refe
阅读全文
摘要:初始化 迭代 迭代时删除 参考文献 Remove items from a list while iterating How to delete items from a dictionary while iterating over it?
阅读全文
摘要:索引与外键 order是MySQL的一个关键字,不要用来做表名,否则有坑。 触发器 replace into REPLACE works exactly like INSERT, except that if an old row in the table has the same value as
阅读全文
摘要:开始学习MySQL。 customer表如下: 参考资料: How I Write SQL, Part 1: Naming Conventions
阅读全文

浙公网安备 33010602011771号