会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
柳志军
博客园
首页
新随笔
新文章
联系
管理
订阅
2024年8月1日
11:Python字符串的魔法属性2
摘要: test = 'alex'v = test[2] # 索引,下标,获取字符串中的某一个字符print(v, -1)test = 'alexsasdf'v = test[0:3] # 0=<v<3print(v, -2)v1 = test[0:-1] # 切片print(v1, -3)v2 = len
阅读全文
posted @ 2024-08-01 17:41 柳志军
阅读(3)
评论(0)
推荐(0)
编辑
公告