放在整齐的目录,遍历优化速度优化7倍:
0.9秒 starttime.time()dirsglob.glob(box_root/*)pkl_namedata_box.pklok_num0sense_files[]for dir in dirs:file_pathdirf/{pkl_name}if os.path.exists():ok_num1sense_files.append(file_path)print(len(sens…
《Programming from the Ground Up》学习第6天,p95-p102总结,总计8页。
一、技术总结
1.directive(伪指令)
很多资料喜欢把directive和instruction都翻译成“指令”,这样在看到指令这个词时就不知道到底指的是什么?这里参考其它…
CPU 监控:top 命令: top 是一个实时的系统监控工具,显示了CPU使用率、内存使用情况、正在运行的进程等信息。 1 键来查看每个CPU核心的详细使用情况。
htop 命令: htop 是 top 的一个增强版,界面更加友好,…
6. 三阶行列式
6.1 三阶行列式的定义
对三阶方阵 ( a 1 a 2 a 3 b 1 b 2 b 3 c 1 c 2 c 3 ) \begin{pmatrix} a_{1} & a_{2} & a_{3}\\ b_{1} & b_{2} & b_{3}\\ c_{1} & c_{2} &c_{3} \end{pmatrix} a1b1c1a2b2c2a3b3c3 …