放在整齐的目录,遍历优化速度优化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 的一个增强版,界面更加友好,…