Wait for bloom
时光不语,静待花开
摘要: 字符串详解 1. index def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ """ S.index(sub[, start[, end]]) -> int Ret 阅读全文
posted @ 2024-01-19 16:13 Little-Girl 阅读(73) 评论(0) 推荐(0)
摘要: 字符串详解 1.center def center(self, *args, **kwargs): # real signature unknown """ Return a centered string of length width. Padding is done using the spe 阅读全文
posted @ 2024-01-18 17:16 Little-Girl 阅读(43) 评论(0) 推荐(1)
摘要: 序列是Python中最基本的数据结构。序列中的每个元素都分配一个数字 - 它的位置,或索引,第一个索引是0,第二个索引是1,依此类推。最常见的是列表和元组。 列表与元组最大的区别在于列表可以进行更改,而元组不行。 列表是最常用的python数据类型,列表的数据项不需要具有相同的类型(可插入字符、数字 阅读全文
posted @ 2018-10-17 11:46 Little-Girl 阅读(211) 评论(0) 推荐(1)
摘要: Python 3最重要的新特性之一是对字符串和二进制数据流做了明确的区分。文本总是 Unicode,由 str 类型表示,二进制数据则由 bytes 类型表示。Python 3不会以任意隐式的方式混用 str 和 bytes ,你不能拼接字符串和字节流,也无法在字节流里搜索字符串(反之亦然),也不能 阅读全文
posted @ 2018-10-17 11:34 Little-Girl 阅读(692) 评论(0) 推荐(0)
摘要: 1 #!usr/bin/env python 2 #author lhy 3 # 说明:快捷键tab--补全作用 4 # ctrl + ? 注释 5 # '' 与"" 功能一样 ,但是单引号里面有引用需要用双引号,反之同理 6 print('hello world!') #单引号 7 print(" 阅读全文
posted @ 2018-09-17 17:10 Little-Girl 阅读(106) 评论(0) 推荐(0)