上一页 1 ··· 379 380 381 382 383 384 385 386 387 ··· 407 下一页
摘要: >>> a = "ab\ncde" >>> print(a) ab cde >>> b = "ab\\ncde" >>> print(b) ab\ncde >>> c = r"ab\ncd3" >>> print(c) ab\ncd3 阅读全文
posted @ 2020-12-17 18:14 小鲨鱼2018 阅读(106) 评论(0) 推荐(0)
摘要: >>> int(3) 3 >>> int(3.1) 3 >>> int(3.5) 3 >>> int(3.7) 3 >>> int(3.9) 3 阅读全文
posted @ 2020-12-17 18:07 小鲨鱼2018 阅读(613) 评论(0) 推荐(0)
摘要: >>> 5 % 0 Traceback (most recent call last): File "<pyshell#354>", line 1, in <module> 5 % 0 ZeroDivisionError: integer division or modulo by zero >>> 阅读全文
posted @ 2020-12-17 18:04 小鲨鱼2018 阅读(3270) 评论(0) 推荐(0)
摘要: >>> 3 / 2 ## 普通除法,保留浮点 1.5 >>> 3 // 2 ## 地板除法,省略小数点 1 阅读全文
posted @ 2020-12-17 17:55 小鲨鱼2018 阅读(1470) 评论(0) 推荐(0)
摘要: >>> a = 8 >>> type(a) <class 'int'> ## 整数 >>> b = "xxx" >>> type(b) <class 'str'> ## 字符串 >>> c = True >>> type(c) <class 'bool'> ## 布尔型 >>> d = ["aaa" 阅读全文
posted @ 2020-12-17 17:53 小鲨鱼2018 阅读(260) 评论(0) 推荐(0)
摘要: 1、报错信息 2、安装libffi-devel [root@linuxprobe Python-3.9.1]# yum install libffi-devel Updating Subscription Management repositories. Unable to read consume 阅读全文
posted @ 2020-12-17 13:24 小鲨鱼2018 阅读(9188) 评论(2) 推荐(1)
摘要: 实验环境接“ linux系统中部署apache服务(个人用户主页功能)”。 1、在PC1服务器端为用户usertest1创建密码库 [root@PC1 ~]# htpasswd -c /etc/httpd/passwd usertest1 ## 这个usertest1不必是系统已经存在的账户,只是用 阅读全文
posted @ 2020-12-17 00:58 小鲨鱼2018 阅读(576) 评论(0) 推荐(0)
摘要: 个人用户主页功能:每个用户建立一个独立的网站 以下实验中PC1为服务器端,IP地址为192.168.10.10;PC2和PC3为客户机端, IP地址为192.168.10.20和192.168.10.30。 1、在PC1服务器端部署apache服务 [root@PC1 ~]# ifconfig | 阅读全文
posted @ 2020-12-16 23:45 小鲨鱼2018 阅读(852) 评论(0) 推荐(0)
摘要: 以下实验中服务器端为PC1,IP地址为192.168.10.10 ;客户机端分别为PC2和PC3,IP地址分别为192.168.10.20和192.168.10.30 1、在PC1服务器端安装apache服务 [root@PC1 ~]# ifconfig | head -n 3 ## 查看IP en 阅读全文
posted @ 2020-12-16 21:54 小鲨鱼2018 阅读(429) 评论(0) 推荐(0)
摘要: apache服务即为网页服务,apache服务的软件包叫httpd。 以下实验在PC1主机中完成 1、测试配置前网页服务 2、在PC1主机中安装apache软件包 [root@PC1 ~]# yum install httpd -y Loaded plugins: langpacks, produc 阅读全文
posted @ 2020-12-16 20:14 小鲨鱼2018 阅读(2732) 评论(0) 推荐(0)
上一页 1 ··· 379 380 381 382 383 384 385 386 387 ··· 407 下一页