![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
scripts
网络飞鸥
学无止境
展开
-
python package/module in windows 安装
方法一:cmd中运行pip install xx注意:1.pip添加至环境变量 2.系统自带这些安装模块运行pip freeze > requirements.txt 可以在requirements.txt文件中查找哪些module可以用这种方法安装用法指导:https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels方法二:下载需安装module的.whl文件https:/...原创 2022-01-28 09:53:59 · 213 阅读 · 0 评论 -
Shell逐行读取文件的3种方法
方法1:while循环中执行效率最高,最常用的方法。while read linedoecho $linedone < filename注释:这种方式在结束的时候需要执行文件,就好像是执行完的时候再把文件读进去一样。方法2 : 管道法: cat $FILENAME | while read LINEcat filename | while read linedoecho $linedone注释:当遇见管道的时候管道左边的命令的输出会作为管道右边命令的输入然后被输入.原创 2021-08-25 13:42:23 · 1524 阅读 · 0 评论