- 博客(2)
- 收藏
- 关注
原创 linux查找文件夹下的文件是否含有某个字段
#!/usr/bin/python# -*- coding:utf8 -*-import ossub_str = "interface TenGigabitEthernet"#def get_file_content(file): #filecon = open()def get_dir(path): files = os.listdir(path) for file in files: if file[0] == '.': pa
2021-11-24 13:26:44
1799
原创 gcc下c++对象模型,对象内存分布
GCC对象内存布局(win10)gdb调试的一些用法:C:\Users\huangx\Desktop\Test> g++ -std=c++11 -g -o test test.cpp //-g 加入调试信息C:\Users\huangx\Desktop\Test> gdb test //进入调试(gdb) set p pretty on //美化print的输出(gdb) b 47 //break line设置断点(gdb) r //run 运行程序(gdb) p d //打印对象
2020-11-29 16:14:17
1278
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人