博客
分类
标签
归档
随笔
日报
博客
分类
标签
归档
随笔
日报
makefile中设置环境变量
直接像命令行中一样设置会有问题,应这样设置:https://segmentfault.com/a/1190000008535305 全局设置: export FLASK_ENV=dev export FLASK_DEBUG=1 dev: @echo $(FLASK_ENV) @echo $(FLASK_DEBUG) 运行make dev时则返回: $ make devde...
2023-10-11
Read More
hadoop入门 example
最简单的wordcount程序https://hadoop.apache.org/docs/stable/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html 加上in-mapper-combine:https://jinwooooo.github.io/jinwooooo-blog/hadoo...
2023-10-11
Read More
光标移动不用方向键 vscode shell等
vscodehttps://blog.csdn.net/m0_65450343/article/details/124704989ctrl+K, ctrl+S 进入快捷键设置alt+i 上alt+k 下alt+j 左alt+l 右alt+u 行首alt+o 行末 // Place your key bindings in this file to override the defaultsa...
2023-10-11
Read More
python pip安装网络问题
https://blog.csdn.net/qq_22476313/article/details/120342538 python.exe -m pip install scikit-learn -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com 解决方式:在 pip install xx...
2023-10-10
Read More
ubuntu打不开termial解决 图形界面和ctrl+alt+T快捷键都打不开
解决流程https://www.jianshu.com/p/6c21a1683ac5ctrl+alt+F1进入命令行界面,解决gnome-terminal的报错,然后ctrl+alt+F7返回图形界面,即解决问题 [可选步骤]export DISPLAY=:0https://askubuntu.com/questions/871092/failed-to-connect-to-...
2023-10-08
Read More
awk提取文件某一列存到数组中 awk输出存到数组 awk存到数组
# 将tmp文件中倒数第二列提取到一个数组evl中 # 这样不行: evl=`awk '{print $(NF-1)}' tmp` 这样是把空格分割的字符串赋值给evl(且还不严格是空格分割的,用IFS方法拆分无效) # 得加一个括号,这样转成数组 evl=(`awk '{print $(NF-1)}' tmp`) e...
2023-08-08
Read More
正则表达式
一些语法x 匹配字符 x. 除换行符外的任何字符[xyz] 字符类别;匹配x、y、z[abj-oZ] 具有范围的字符类;匹配 a, b, j到o中的任何字母或 Z[^A-Z] 否定字符类,即该类中的字符以外的任何字符 [^A-Z\n] 除大写字母或换行符外的任何字符 r* 零个或多个r,其中r是任何正则表达式(如...
2023-08-05
Read More
bash分割字符串
方法一 tr替代字符串然后()转数组string="hello,shell,split,test" array=(`echo $string | tr ',' ' '` ) # tr ',' ' '将string中,替换成空格,然后()转成数组 for var in ${array[@]&...
2023-08-05
Read More
ubuntu换源
https://blog.csdn.net/xiangxianghehe/article/details/122856771 https://midoq.github.io/2022/05/30/Ubuntu20-04%E6%9B%B4%E6%8D%A2%E5%9B%BD%E5%86%85%E9%95%9C%E5%83%8F%E6%BA%90/ 总结步骤:- 编辑/etc/apt/sou...
2023-07-26
Read More
导入安装的wsl设置默认登录用户
https://learn.microsoft.com/zh-cn/windows/wsl/basic-commands#set-wsl-version-to-1-or-2 先确认该分发的wsl版本是2查看版本 wsl -l -v 如果不是2的话设置版本 wsl --set-version <distribution name> <versionNumber> 若...
2023-07-26
Read More
Previous
10 / 49
Next
粘贴文本
全选文本
剪切文本
复制文本
站内搜索
必应搜索
新标签页打开
复制链接地址
复制图片
谷歌识图
常见问题
示例博客
加入社区
本站源码
主题源码
暗黑模式
打印页面
阅读模式