![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 79
Jack_wjx
这个作者很懒,什么都没留下…
展开
-
Python的内置对象
Python的内置对象 1.Number 属性 Number.MAX_VALUE Number.MIN_VALUE 方法 toFixed([number]) 取整或者保留指定位数的小数(四舍五入) toString([number]) 转为字符串形式,也可指定进制输出 2.String 属性 length 字符串长度 方法 indexOf() 返回第一次出现的位置 不存在返回-1 lastInd...原创 2018-09-23 15:03:32 · 418 阅读 · 0 评论 -
Python的核心数据类型——字符串
操作 解释 s = ‘’ 空字符串 s = “dodo’s” 双引号和单引号 s = ‘d\no\p\td\x00o’ 转义序列 s = “””….””” 三重引号字符串块 s = r’\temp\dodo’ Raw字符串 s = b’dodo’ 字节字符串 s = u’dodo’ unicode字符串(仅在2.0+使用) s1 + s2,s * 3 合并,重复 s[i],s[i:j],len(s...原创 2018-10-19 06:17:34 · 352 阅读 · 0 评论