摘要: firewalld拥有命令行界面(CLI)和图形用户界面(GUI) firewalld中有区域的概念,区域就是防火墙配置策略的模板。 firewalld中常用的区域名称及策略规则: 以下实验主要是命令行界面的常用命令 1、常用的参数表格 2、查看firewalld服务当前所使用的区域 [root@P 阅读全文
posted @ 2020-12-22 14:26 小鲨鱼2018 阅读(415) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = ("aaa","bbb","ccc","ddd","eee","fff","ggg") >>> type(test1) <class 'tuple'> >>> test2 = test1[:4] >>> test2 ('aaa', 'bbb', 'ccc', 'ddd') 阅读全文
posted @ 2020-12-22 02:22 小鲨鱼2018 阅读(162) 评论(0) 推荐(0) 编辑
摘要: >>> test1 = [3,5,1,9,2,7,4] >>> type(test1) <class 'list'> >>> len(test1) 7 >>> min(test1) 1 >>> max(test1) 9 >>> sum(test1) 31 >>> sum(test1) / len(t 阅读全文
posted @ 2020-12-22 02:14 小鲨鱼2018 阅读(5122) 评论(0) 推荐(0) 编辑