上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 367 下一页
摘要: 01、 002、解决方法 [root@PC1 test2]# conda install pandas 阅读全文
posted @ 2023-06-12 13:01 小鲨鱼2018 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test03]# ls a.txt [root@PC1 test03]# cat a.txt ## 测试数据 bookbookbookbook jjjj name=jack uuuuuuu 127.0.0.1 bookbook77 xxxxx.com eeebookbo 阅读全文
posted @ 2023-06-12 10:46 小鲨鱼2018 阅读(892) 评论(0) 推荐(1) 编辑
摘要: 001、删除文件的第一列 [root@PC1 test03]# ls a.txt [root@PC1 test03]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@PC1 te 阅读全文
posted @ 2023-06-12 10:25 小鲨鱼2018 阅读(1802) 评论(0) 推荐(0) 编辑
摘要: 使用translate()方法进行字符串转换,通常需要先创建一个转换表。转换表可以使用Python内置的str.maketrans()方法创建,也可以手动创建一个字典来实现。 001、生成转换表 >>> table = str.maketrans("135", "QMT") ## 将1转换为Q,3转 阅读全文
posted @ 2023-06-12 01:22 小鲨鱼2018 阅读(366) 评论(0) 推荐(0) 编辑
摘要: r选项的作用表示在文件中匹配B, 然后读入a.txt的内容, 添加到B的后面 001、 (base) [root@PC1 test2]# ls a.txt b.txt (base) [root@PC1 test2]# cat a.txt 1 2 3 4 5 (base) [root@PC1 test 阅读全文
posted @ 2023-06-11 00:36 小鲨鱼2018 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 001、ctrl + shift + esc 打开任务管理器, 然后1, 2 阅读全文
posted @ 2023-06-10 14:44 小鲨鱼2018 阅读(238) 评论(0) 推荐(0) 编辑
摘要: lower只对ASCII起作用。 casefold对更多的语言起作用。 001、 >>> str1 = 'ß' ## 测试字符串 >>> str1 'ß' >>> str1.lower() ## lower 'ß' >>> str1 'ß' >>> str1.casefold() ## casefo 阅读全文
posted @ 2023-06-10 00:36 小鲨鱼2018 阅读(63) 评论(0) 推荐(0) 编辑
摘要: capitalize将首个字母转换为大写, 其余单词不处理。 title将所有单词的首字符转换为大写。 001、 >>> str1 = "ab cd ef" ## 测试字符串 >>> str1 'ab cd ef' >>> str1.capitalize() ## capitalize函数 'Ab 阅读全文
posted @ 2023-06-10 00:31 小鲨鱼2018 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test2]# cat a.fa ## 测试fasta文件 >chr1 aattccgggttgggcccyujjjttt ddeeeegghggii >chr2 8883dsfdkkkfftteeessskkk aaadddfffgggcccgggt33 ddggee 阅读全文
posted @ 2023-06-10 00:18 小鲨鱼2018 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test05]# ls a.txt test.py [root@PC1 test05]# cat a.txt ## 测试数据 3333 gene 9999 kkkk gene 7777 8888 gene gene 0000 6666 [root@PC1 test05] 阅读全文
posted @ 2023-06-08 21:17 小鲨鱼2018 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 367 下一页