会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
闲云野鹤cs
博客园
首页
新随笔
联系
订阅
管理
2020年12月13日
python基础练习
摘要: 1、计算字符串最后一个单词的长度,单词以空格隔开 #!/usr/bin/python a=input().strip() a=a[-1::-1] count=0 for i in a: if i!=" ": count+=1 else: break print(count) a=input().st
阅读全文
posted @ 2020-12-13 17:21 闲云野鹤cs
阅读(386)
评论(0)
推荐(0)
编辑
公告