Python基础(10)–运算符操作字符串、字符串的”查操作”与字符串的比较
◎知识点
运算符操作字符串
字符串的"查操作"
字符串的比较
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: string_operator.py &nbs...Continue reading >>
◎知识点
运算符操作字符串
字符串的"查操作"
字符串的比较
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: string_operator.py &nbs...Continue reading >>
◎知识点
Python字符串的概述
字符串的创建
转义字符
原始字符串
跨越多行的字符串
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: string_def.py @...Continue reading >>
◎知识点
Python元组的概述
只包含一个元素的元组
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: tuple_def.py @Function: ...Continue reading >>
◎知识点
列表的反转
列表的排序
多维列表
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: list_reverse_sort.py @Function: ...Continue reading >>
◎知识点
使用加法和乘法运算符操作列表
使用比较运算符比较两个列表
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: list_operator2.py @Func...Continue reading >>
◎知识点
列表的“改”操作
列表的“增”操作
列表的“删”操作
◎脚本练习
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @FileName: list_operator.py @Function...Continue reading >>