- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 gdb 调试函数
GDB 调试函数编写示例代码调试编写示例代码本代码功能为找出素数。#include "stdio.h"#include "stdbool.h"#include <math.h>bool prime(long int n){ int i = 2; double k=sqrt(n); while((n%i)!=0&&i*1.0<k) i++; if(i*1.0>k) return true;
2020-12-07 18:05:12 292
原创 在jupyter中使用python绘制线条椭球
在jupyter中使用python绘制线条椭球本文中我们使用了numpy matplotlib,请自行安装import matplotlib as mplimport numpy as npimport matplotlib.pyplot as pltmpl.rcParams['legend.fontsize'] = 10fig = plt.figure()ax = fig.gca(projection='3d')theta = np.linspace(-1 * np.pi, 1 * np.
2020-10-22 21:35:05 1177 1
原创 在SHELL中替换BIN文件内容
在SHELL中替换BIN文件内容在测试工程中遇到需要修改bin文件内容的需求,以此写下此文,共同学习。本文使用到的工具有od xxd awk sed,请自行安装生成测试文件echo abc12 > afile查看文件$ od -tx1 afile0000000 61 62 63 31 32 0a0000006修改文件内容为“abccc”od -An -v -tx1 afile | sed -e 's/^\s*61\s*62\s*63\s*31\s*32/61 62
2020-10-22 21:16:59 914 1
matlab常用命令列表
2013-04-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人