上一页 1 ··· 153 154 155 156 157 158 159 160 161 ··· 403 下一页
摘要: 001、 >>> str1 = ">aabbcc" >>> if str1.startswith(">"): ... print("yes") ... yes >>> if not str1.startswith(">"): ## python中if语句取反 ... print("yes") ... 阅读全文
posted @ 2022-11-02 16:24 小鲨鱼2018 阅读(617) 评论(0) 推荐(0)
摘要: 001、提取文件的最后几列 [root@pc1 test3]# ls a.txt [root@pc1 test3]# cat a.txt ## 测试文件 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 0 阅读全文
posted @ 2022-11-02 12:02 小鲨鱼2018 阅读(514) 评论(0) 推荐(1)
摘要: 001、 [root@PC1 test1]# ls a.txt [root@PC1 test1]# cat a.txt 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 02 阅读全文
posted @ 2022-11-02 11:21 小鲨鱼2018 阅读(157) 评论(0) 推荐(0)
摘要: -b:以字节为单位进行截取。 -c:以字符为单位进行截取。 001、 [root@PC1 test1]# ls a.txt b.txt [root@PC1 test1]# cat a.txt ewr23436546cfgfd [root@PC1 test1]# cut -b 2 a.txt w [r 阅读全文
posted @ 2022-11-02 10:52 小鲨鱼2018 阅读(773) 评论(0) 推荐(0)
摘要: 001、跳转到指定列 n + | (管道) 或者 0nl(小写的L) 002、跳转到行首、行尾 0:行首 $:行尾 home:行首 end:行尾 003、左右移动 nl(小写的L):向右移动n位 hl(小写的L):向左移动n位 阅读全文
posted @ 2022-11-02 10:45 小鲨鱼2018 阅读(537) 评论(0) 推荐(0)
摘要: 001、问题 解决方法如下: 001、win + i打开设置, 点击隐私与安全性 002、点window安全中心 003、点设备安全性 004、点击内核隔离详细信息 005、将该选项关闭 006、重启计算机、测试,没有问题了。 阅读全文
posted @ 2022-11-01 23:49 小鲨鱼2018 阅读(5125) 评论(0) 推荐(0)
摘要: 000、问题如下: 001、 002、 003、 004、勾选 005、 参考:https://www.cnblogs.com/zouhuaxin/p/16732666.html 阅读全文
posted @ 2022-11-01 23:22 小鲨鱼2018 阅读(2783) 评论(0) 推荐(0)
摘要: 001、打包 [root@pc1 test3]# ls a.txt b.txt c.map df110 tmp1 [root@pc1 test3]# tar -cf all.tar * ## 打包 [root@pc1 test3]# ls all.tar a.txt b.txt c.map df11 阅读全文
posted @ 2022-11-01 10:13 小鲨鱼2018 阅读(253) 评论(0) 推荐(0)
摘要: 001、问题 [root@pc1 test4]# ls a.fa test.py [root@pc1 test4]# cat a.fa >chr1 aatt cc >chr2 ttgg ccttgg >chr3 TTCCGG cctt ccgg [root@pc1 test4]# cat test. 阅读全文
posted @ 2022-10-31 15:35 小鲨鱼2018 阅读(94) 评论(0) 推荐(0)
摘要: 001、方法1 >>> list1 = ["aaa", "bbb", "ccc"] >>> list2 = [100, 500, 300] >>> dict1 = dict(zip(list1, list2)) >>> dict1 {'aaa': 100, 'bbb': 500, 'ccc': 30 阅读全文
posted @ 2022-10-31 11:44 小鲨鱼2018 阅读(186) 评论(0) 推荐(0)
上一页 1 ··· 153 154 155 156 157 158 159 160 161 ··· 403 下一页