会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xxxyz
人生有很多变数,努力征服所有成就人生!
首页
联系
订阅
管理
2022年8月2日
python切片索引循环每次去掉最后一个字符
摘要: class Course9: def Test1(self=0): word = "This's a test" # print(type(word)) i = len(word) while i > 0: print(word[0:i - 1]) i -= 1 def Test2(self=Non
阅读全文
posted @ 2022-08-02 15:47 xxxyz
阅读(131)
评论(0)
推荐(0)