摘要:
001、 (base) root@ubuntu01pc1:~# conda --version ## conda版本 conda 4.12.0 002、在终端执行如何命令 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn 阅读全文
posted @ 2022-08-08 21:03
小鲨鱼2018
阅读(1394)
评论(0)
推荐(0)
摘要:
001、系统 root@ubuntu01pc1:/home/test# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 阅读全文
posted @ 2022-08-08 20:44
小鲨鱼2018
阅读(762)
评论(0)
推荐(0)
摘要:
001、python中global关键字 将 局部变量升级为全局变量 (base) root@PC1:/home/test# ls test.py (base) root@PC1:/home/test# cat test.py ## 测试脚本 #!/usr/bin/python def test_f 阅读全文
posted @ 2022-08-08 19:33
小鲨鱼2018
阅读(35)
评论(0)
推荐(0)
摘要:
001、局部变量:作用域仅限于函数内部。 (base) root@PC1:/home/test# ls test.py (base) root@PC1:/home/test# cat test.py ## 测试脚本 #!/usr/bin/python def test_fun(): ## 创建函数 阅读全文
posted @ 2022-08-08 19:26
小鲨鱼2018
阅读(164)
评论(0)
推荐(0)
摘要:
001、 回退:u 前进:ctrl + r 阅读全文
posted @ 2022-08-08 19:18
小鲨鱼2018
阅读(477)
评论(0)
推荐(0)
摘要:
001、 (base) root@PC1:/home/test# ls a.fasta test.py (base) root@PC1:/home/test# head a.fasta ## 测试fasta文件 >scaffold_1 CCCGGGTAAAACGGGTCTTCAAGAAAACGCTC 阅读全文
posted @ 2022-08-08 16:04
小鲨鱼2018
阅读(140)
评论(0)
推荐(0)
摘要:
001、 >>> a = {"b":500, "c":300, "a":700, "d":888} ## 测试字典 >>> a {'b': 500, 'c': 300, 'a': 700, 'd': 888} >>> sorted(a.items(), key = lambda x: x[0]) # 阅读全文
posted @ 2022-08-08 15:23
小鲨鱼2018
阅读(155)
评论(0)
推荐(0)
摘要:
001、 >>> a = lambda x: x + 10 ## 直接定义函数 >>> a(5) 15 >>> a(100) 110 >>> b = lambda x: x * 5 ## 直接定义函数 >>> b(5) 25 >>> b(100) 500 阅读全文
posted @ 2022-08-08 15:17
小鲨鱼2018
阅读(36)
评论(0)
推荐(0)
摘要:
001、 >>> a = [1, 3, 6] >>> sum(a)/len(a) 3.3333333333333335 >>> round(sum(a)/len(a), 2) ## 保留两位有效数字 3.33 >>> round(sum(a)/len(a), 4) ## 保留四位有效数字 3.333 阅读全文
posted @ 2022-08-08 13:47
小鲨鱼2018
阅读(343)
评论(0)
推荐(0)
摘要:
001、利用列表实现 (base) root@PC1:/home/test# ls a.fasta test.py (base) root@PC1:/home/test# cat a.fasta ## 测试数据 >scaffold_1 CCCGGGTAAAACGGGTCTTCAAGAAAACGCTC 阅读全文
posted @ 2022-08-08 13:39
小鲨鱼2018
阅读(175)
评论(0)
推荐(0)

浙公网安备 33010602011771号