摘要: 本笔记Python版本是3.8.2 str常用的方法 capitalize 将字符串中的第一个字母变成大写,其余变成小写 官方说明: str.capitalize() Return a copy of the string with its first character capitalized a 阅读全文
posted @ 2020-06-23 21:05 爬坡的蜗牛 阅读(103) 评论(0) 推荐(0)
摘要: 在Python3以后,字符串和bytes类型彻底分开了。字符串是以字符为单位进行处理的,bytes类型是以字节为单位处理的。字符串与bytes的转换,在Python3种基本上只有在socket传输的时候才会用到 二者转换的方式,用encode(编码)和decode(解码)来实现,encode的默认编 阅读全文
posted @ 2020-06-23 21:03 爬坡的蜗牛 阅读(94) 评论(0) 推荐(0)
摘要: 目录变量常量注释字符串的格式化用+号拼接%格式化字符串format格式化字符串input用户输入type判断变量的类型if分支语句if 结构if...else 结构if...elif...结构if...elif...else结构while 循环break跳出循环continue跳过循环while.. 阅读全文
posted @ 2020-06-23 21:02 爬坡的蜗牛 阅读(92) 评论(0) 推荐(0)
摘要: 实验环境 实验名:01 CentOS7.6搭建Python开发环境 Linux版本: CentOS 7.6 Python版本: Python 3.6.8 实验所需软件下载位置【02 开发相关 / 01 CentOS7.6搭建Python开发环境】: 下载地址: https://pan.baidu.c 阅读全文
posted @ 2020-06-23 21:00 爬坡的蜗牛 阅读(105) 评论(0) 推荐(0)
摘要: 实验环境 实验名:01 CentOS7.6搭建Python开发环境 Linux版本: CentOS 7.6 Python版本: Python 3.6.8 实验步骤 第一步:关闭SELinux和防火墙 [root@localhost ~]# vim /etc/selinux/config 将SELIN 阅读全文
posted @ 2020-06-23 18:30 爬坡的蜗牛 阅读(546) 评论(0) 推荐(0)