会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小鲨鱼2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
220
221
222
223
224
225
226
227
228
···
408
下一页
2022年6月4日
python中如何删除文本中指定的列
摘要: 1、删除第一列 [root@PC1 test3]# ls a.txt test.py [root@PC1 test3]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2
阅读全文
posted @ 2022-06-04 19:29 小鲨鱼2018
阅读(2170)
评论(0)
推荐(0)
2022年6月3日
linux正则表达式中\s和\S的作用
摘要: 1、 \s表示空白字符。 \S表示非空白字符。 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt a abckf ff b dfabc fd c abc drfd d df.abcfd fd e df~abc dr f abc.df fd g
阅读全文
posted @ 2022-06-03 11:36 小鲨鱼2018
阅读(3087)
评论(0)
推荐(0)
linux中精确匹配如何避免标点符号的影响
摘要: 001、问题 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 73 dar 87 32 dar.3 fdg fd dar-5 dg df dar~df gfdg df ee.dar 34 er fd-dar 767 df df
阅读全文
posted @ 2022-06-03 11:27 小鲨鱼2018
阅读(75)
评论(0)
推荐(0)
python 列表中利用不连续索引提取列表元素
摘要: 1、 >>> a = list(range(0, 11)) ## 列表 >>> a [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >>> import numpy as np >>> np_a = np.array(a) >>> list(np_a[[1, 3, 7]]) #
阅读全文
posted @ 2022-06-03 10:03 小鲨鱼2018
阅读(662)
评论(0)
推荐(0)
2022年6月2日
python 中删除指定行的数据
摘要: 1、删除第1行 [root@PC1 test2]# ls a.txt test.py [root@PC1 test2]# cat a.txt 01 11 21 31 02 12 22 32 03 13 23 33 04 14 24 34 05 15 25 35 06 16 26 36 [root@P
阅读全文
posted @ 2022-06-02 23:29 小鲨鱼2018
阅读(5222)
评论(0)
推荐(0)
python中提取指定列的数据
摘要: 1、提取第一列 [root@PC1 test2]# ls a.txt test.py [root@PC1 test2]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
阅读全文
posted @ 2022-06-02 22:56 小鲨鱼2018
阅读(7965)
评论(0)
推荐(0)
bash: pip: command not found...
摘要: 1、问题 [root@PC1 test2]# pip install numpy bash: pip: command not found... 2、系统 [root@PC1 test2]# cat /etc/system-release Rocky Linux release 8.5 (Green
阅读全文
posted @ 2022-06-02 22:12 小鲨鱼2018
阅读(1998)
评论(0)
推荐(0)
单细胞数据处理中数据标准化函数NormalizeData()实现细节
摘要: 数据来源:https://www.jianshu.com/p/4f7aeae81ef1 1、 pbmc <- NormalizeData(pbmc) dat <- pbmc[["RNA"]]@counts ## 原始数据 dat <- as.data.frame(dat) dat2 <- matri
阅读全文
posted @ 2022-06-02 19:22 小鲨鱼2018
阅读(223)
评论(0)
推荐(0)
linux 中awk命令实现数据以指定小数位数输出
摘要: 1、 [root@PC1 test3]# ls a.txt [root@PC1 test3]# cat a.txt ## 测试数据 8.34565 3.23445 7.32423 0 8.343532523 5.34355 3.355623253 0 0 [root@PC1 test3]# awk
阅读全文
posted @ 2022-06-02 18:18 小鲨鱼2018
阅读(450)
评论(0)
推荐(0)
2022年6月1日
python 中将列表作为字符串输出
摘要: 1、 >>> a = [111, 222, 333] >>> "-".join(a) ## 数值类型报错 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: sequence item 0
阅读全文
posted @ 2022-06-01 23:21 小鲨鱼2018
阅读(245)
评论(0)
推荐(0)
上一页
1
···
220
221
222
223
224
225
226
227
228
···
408
下一页
公告