摘要:
网络回话:通俗讲是网络参数配置的清单,可以根据不同的使用环境切换网络参数配置。 以下实验使用一台虚拟机完成,PC1主机名: 1、查看网卡信息 [root@PC1 ~]# nmcli connection show NAME UUID TYPE DEVICE eno16777728 d6f581bd- 阅读全文
摘要:
1、永久排序 >>> test1 = ["ccc","ddd","aaa","bbb"] >>> test2 = test1[:] >>> test1 ['ccc', 'ddd', 'aaa', 'bbb'] >>> test2 ['ccc', 'ddd', 'aaa', 'bbb'] >>> te 阅读全文
摘要:
>>> test1 = ["aaa","bbb","aaa","ccc","aaa","aaa","ddd","aaa","ccc"] >>> test1.index("aaa") ## 返回元素的首个索引 0 >>> test1.index("bbb") 1 >>> test1.index("c 阅读全文