摘要: 题目:(自己完成的) 输入一串字符串,计算看是不是包含f,r,i,e,n,d 并计算能组成 几个friend 版本2.0 版本3.0 阅读全文
posted @ 2017-08-18 22:14 bingxingc 阅读(4404) 评论(0) 推荐(0) 编辑
摘要: say = "hello world" print(say[-1]) # d print(say[-5:]) # > world print(say[:5]) # >hello print(say[i:j:k]) # i=开始位置,J= 结束位置 k=跳数 say = "there is 3 monkey in the tree!" # 3 和 tree 不确定... 阅读全文
posted @ 2017-08-18 20:05 bingxingc 阅读(101) 评论(0) 推荐(0) 编辑