上一页 1 ··· 119 120 121 122 123 124 125 126 127 ··· 367 下一页
摘要: 001、 [b20223040323@admin1 test2]$ ls test.sh [b20223040323@admin1 test2]$ cat test.sh ## 测试脚本 #!/bin/bash a="abc" b="abc" if [ $a == $b ] then echo "i 阅读全文
posted @ 2022-10-27 18:51 小鲨鱼2018 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt ## 测试数据 j d e w e th d e s d g e t f g w e t [root@pc1 test2]# sed 's/e.*e//' a.txt ## 删除e 阅读全文
posted @ 2022-10-26 22:46 小鲨鱼2018 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls a.csv a.txt b.csv b.txt c.csv [root@pc1 test]# ll -h ## 测试文件 total 430M -rw-r--r--. 1 root root 20M Oct 26 18:02 a.csv -rw-r- 阅读全文
posted @ 2022-10-26 18:07 小鲨鱼2018 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls test.txt [root@pc1 test]# cat test.txt 1 2 3 4 5 [root@pc1 test]# sed "$d" test.txt 1 2 3 4 5 [root@pc1 test]# sed '$d' test. 阅读全文
posted @ 2022-10-24 08:36 小鲨鱼2018 阅读(1596) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@localhost test3]# ls a34 a45 b34 b54 c23 c34 dirab [root@localhost test3]# tree . ├── a34 ├── a45 ├── b34 ├── b54 ├── c23 ├── c34 └── dirab 阅读全文
posted @ 2022-10-21 18:17 小鲨鱼2018 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 001、问题 AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long' 002、原因 pip版本和对应的python调用不是同一个版本 003、解决方法 查找环境变量, 将pip命令和pytho 阅读全文
posted @ 2022-10-21 17:33 小鲨鱼2018 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 001、问题 ModuleNotFoundError: No module named '_sqlite3' 002、问题原因’ 安装python的时候没有找到sqlite3.so的库。 003、解决方法 yum install sqlite* 004、然后重新编译python3 ./configu 阅读全文
posted @ 2022-10-21 16:57 小鲨鱼2018 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 001、问题 002、问题原因 原因为升级python后新建了软连接指向了新版本,除非同时升级yum不然无法使用。需要手动更改报错文件指向python2后即可解决。 003、解决方法 找出python2.7的路径 whereis python 编辑报错的配置文件,vim /usr/libexec/u 阅读全文
posted @ 2022-10-21 16:43 小鲨鱼2018 阅读(1905) 评论(0) 推荐(0) 编辑
摘要: 001、问题 except KeyboardInterrupt, e: 002、问题原因 2.原因:yum需要用python2编译,如果服务器安装的是python3并作为默认编译器的话,就会出现这个错误。 003、解决方法 找到python2的路径: whereis python 004、修改yum 阅读全文
posted @ 2022-10-21 16:33 小鲨鱼2018 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 001、问题 ModuleNotFoundError: No module named 'pandas' 002、解决方法 pip install pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 003、 阅读全文
posted @ 2022-10-21 16:14 小鲨鱼2018 阅读(437) 评论(0) 推荐(0) 编辑
上一页 1 ··· 119 120 121 122 123 124 125 126 127 ··· 367 下一页