摘要:
>>> 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)

浙公网安备 33010602011771号