上一页 1 ··· 336 337 338 339 340 341 342 343 344 ··· 367 下一页
摘要: 1、创建测试矩阵 > rname <- paste0("r",1:4) > rname [1] "r1" "r2" "r3" "r4" > cname <- paste0("c",1:5) > cname [1] "c1" "c2" "c3" "c4" "c5" > a <- matrix(1:20 阅读全文
posted @ 2020-12-20 12:35 小鲨鱼2018 阅读(3007) 评论(0) 推荐(0) 编辑
摘要: >>> list(range(10)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> list(range(1,10)) [1, 2, 3, 4, 5, 6, 7, 8, 9] >>> list(range(1,11)) [1, 2, 3, 4, 5, 6, 7, 8, 9, 阅读全文
posted @ 2020-12-20 02:13 小鲨鱼2018 阅读(2960) 评论(0) 推荐(0) 编辑
摘要: 实验一共需要三台主机完成: PC1:192.168.10.10 PC2:192.168.10.20 PC2:192.168.10.30 1、测试三台主机网络连通性 [root@PC1 ~]# ifconfig | head -n 3 eno16777728: flags=4163<UP,BROADC 阅读全文
posted @ 2020-12-20 00:00 小鲨鱼2018 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 以下实验实现PC1主机和PC2主机之间的文件传输 PC1:192.168.10.10 PC2:192.168.10.20 1、测试PC2主机和PC1主机之间的网络连通性 [root@PC2 network-scripts]# ifconfig | head -n 3 eno16777728: fla 阅读全文
posted @ 2020-12-19 15:30 小鲨鱼2018 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 主机1:PC1,192.168.10.10 主机2:PC2,192.168.10.20 以下实现主要实现PC2远程免密登录PC1 1、测试PC2和PC1主机的连通性 [root@PC2 ~]# ifconfig | head -n 3 ## 查看PC2主机IP eno16777728: flags= 阅读全文
posted @ 2020-12-19 14:20 小鲨鱼2018 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 网络回话:通俗讲是网络参数配置的清单,可以根据不同的使用环境切换网络参数配置。 以下实验使用一台虚拟机完成,PC1主机名: 1、查看网卡信息 [root@PC1 ~]# nmcli connection show NAME UUID TYPE DEVICE eno16777728 d6f581bd- 阅读全文
posted @ 2020-12-19 10:35 小鲨鱼2018 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1、永久排序 >>> test1 = ["ccc","ddd","aaa","bbb"] >>> test2 = test1[:] >>> test1 ['ccc', 'ddd', 'aaa', 'bbb'] >>> test2 ['ccc', 'ddd', 'aaa', 'bbb'] >>> te 阅读全文
posted @ 2020-12-19 00:24 小鲨鱼2018 阅读(899) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = ["aaa","bbb","aaa","ccc","aaa","aaa","ddd","aaa","ccc"] >>> test1.index("aaa") ## 返回元素的首个索引 0 >>> test1.index("bbb") 1 >>> test1.index("c 阅读全文
posted @ 2020-12-19 00:08 小鲨鱼2018 阅读(2133) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = ["aaa","bbb","aaa","aaa","ccc","ccc","ddd","aaa","ddd","eee","ddd"] >>> test1.count("aaa") ## 统计指定元素出现的次数 4 >>> test1.count("bbb") 阅读全文
posted @ 2020-12-18 23:33 小鲨鱼2018 阅读(3768) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = ["aaa","bbb","ccc","ddd","eee","fff"] >>> test2 = ["ddd","eee","fff","ggg","hhh","iii"] >>> test3 = test1 + test2 >>> test3 ['aa 阅读全文
posted @ 2020-12-18 22:20 小鲨鱼2018 阅读(931) 评论(0) 推荐(0) 编辑
上一页 1 ··· 336 337 338 339 340 341 342 343 344 ··· 367 下一页