摘要:
001、 >>> str1 = "ab" ## 测试字符串 >>> str1 'ab' >>> str1.ljust(10) ## 调整宽度为10, 左侧对齐, 默认用空格填充 'ab ' >>> str1.ljust(10, "+") ## 设置用+号填充 'ab++++++++' >>> str 阅读全文
摘要:
001、 >>> list1 = [111, 222, 333] >>> list1 [111, 222, 333] >>> list1 = [str(i) for i in list1] ## 将列表中数值转换为字符串 >>> list1 ['111', '222', '333'] 阅读全文
摘要:
001、 [root@PC1 test04]# ls a.txt [root@PC1 test04]# cat a.txt ## 测试数据 3333 gene 9999 kkkk gene 7777 8888 gene gene 0000 6666 ## 输出匹配字符及其下一行 [root@PC1 阅读全文
摘要:
001、 [root@PC1 test04]# ls a.txt [root@PC1 test04]# cat a.txt ## 测试数据 3333 gene 9999 kkkk gene 7777 8888 gene 0000 6666 [root@PC1 test04]# sed -n '/ge 阅读全文
摘要:
001、 [root@PC1 test04]# ls a.txt [root@PC1 test04]# cat a.txt ## 测试数据 3333 gene 9999 kkkk gene 7777 8888 gene 0000 6666 [root@PC1 test04]# awk '$1 == 阅读全文
摘要:
001、 [b20223040323@admin2 test]$ ls a.gff [b20223040323@admin2 test]$ cat a.gff region 1 pseudogene 2 transcript 3 exon 4 pseudogene 5 transcript 6 ex 阅读全文