上一页 1 ··· 378 379 380 381 382 383 384 385 386 ··· 407 下一页
摘要: >>> test1 = ["aaa","bbb","ccc","ddd"] >>> type(test1) <class 'list'> >>> len(test1) 4 >>> test1[0] ## 查看第一个元素 'aaa' >>> test1[2] 'ccc' >>> test1[-1] # 阅读全文
posted @ 2020-12-18 18:39 小鲨鱼2018 阅读(3315) 评论(0) 推荐(0)
摘要: >>> test1 = ["aaa","bbb","ccc"] >>> type(test1) <class 'list'> >>> len(test1) 3 >>> test1.append("xxx") ## 追加 >>> test1 ['aaa', 'bbb', 'ccc', 'xxx'] > 阅读全文
posted @ 2020-12-18 18:34 小鲨鱼2018 阅读(6536) 评论(0) 推荐(0)
摘要: 以下实验使用三台虚拟机完成。 服务器端:PC1,192.168.10.10 客户机端:PC2,192.168.10.20 客户机端:PC3,192.168.10.30 1、PC1服务器端安装apache服务 [root@PC1 ~]# yum install httpd -y Loaded plug 阅读全文
posted @ 2020-12-18 00:49 小鲨鱼2018 阅读(896) 评论(0) 推荐(0)
摘要: 服务器端: PC1,192.168.10.10 客户机端: PC2, 192.168.10.20 1、在PC1服务器端安装Apache服务 [root@PC1 ~]# yum install httpd -y Loaded plugins: langpacks, product-id, subscr 阅读全文
posted @ 2020-12-17 23:18 小鲨鱼2018 阅读(542) 评论(0) 推荐(0)
摘要: 以下实验在两台虚拟机中完成,PC1服务器端,IP地址为192.168.10.10; PC2为客户机端,IP地址为192.168.10.20. 1、在PC1服务器端安装apache服务 [root@PC1 ~]# yum install httpd -y Loaded plugins: langpac 阅读全文
posted @ 2020-12-17 22:21 小鲨鱼2018 阅读(849) 评论(0) 推荐(0)
摘要: 虚拟主机功能:一台物理服务器分割为多个“虚拟的服务器”,实现一台物理服务器部署多个网站的功能。 方式: 基于IP地址 基于主机域名 基于端口号 以下实验完成基于IP地址的虚拟主机功能,使用两台虚拟机完成,PC1为服务器端,IP设定为3个(192.168.10.100,192.168.10.101,1 阅读全文
posted @ 2020-12-17 21:14 小鲨鱼2018 阅读(715) 评论(0) 推荐(0)
摘要: >>> 5 > 3 and 5 > 4 True >>> 5 > 3 and 5 > 6 False >>> 5 > 3 or 5 < 4 True >>> 5 > 7 or 5 > 6 False >>> not 0 True >>> not 1 False >>> not 2 False >>> 阅读全文
posted @ 2020-12-17 19:24 小鲨鱼2018 阅读(75) 评论(0) 推荐(0)
摘要: >>> 3 > 5 False >>> 3 >= 5 False >>> 3 < 5 True >>> 3 == 5 False >>> 3 != 5 True >>> 3 <= 5 True 阅读全文
posted @ 2020-12-17 19:18 小鲨鱼2018 阅读(101) 评论(0) 推荐(0)
摘要: >>> a = 5 >>> a 5 >>> type(a) <class 'int'> >>> b = float(a) >>> b 5.0 >>> type(b) <class 'float'> >>> c = 5.3 >>> c 5.3 >>> type(c) <class 'float'> > 阅读全文
posted @ 2020-12-17 18:31 小鲨鱼2018 阅读(156) 评论(0) 推荐(0)
摘要: >>> a = "line1\nline2\nline3\nline4\n……" >>> print(a) line1 line2 line3 line4 …… >>> a = """line1 ## 使用"""xxxx""" 可以省略\n. line2 line3 line4 …… """ >>> 阅读全文
posted @ 2020-12-17 18:20 小鲨鱼2018 阅读(241) 评论(0) 推荐(0)
上一页 1 ··· 378 379 380 381 382 383 384 385 386 ··· 407 下一页