![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 66
Virgil528
这个作者很懒,什么都没留下…
展开
-
练习题:字符串索引为偶数的变大写字母,返回字符串
原题:Write a function that accepts a string, and returns the same string with all even indexed characters in each word upper cased, and all odd indexed characters in each word lower cased. The indexing...原创 2018-06-02 14:09:21 · 1162 阅读 · 0 评论 -
练习题 按照字符串中数字的顺序重组字符串
题目:Your task is to sort a given string.Each word in the String will contain a single number. This number is the position the word should have in the result.Note: Numbers can be from 1 to 9. So 1 will ...原创 2018-06-02 15:10:29 · 552 阅读 · 0 评论 -
练习题 将输入的秒数转换为时间格式
原题Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)HH = hours, padded to 2 digits, range: 00 - 99MM = minutes, padded t...原创 2018-06-02 15:41:44 · 1417 阅读 · 0 评论 -
练习题 将字符串中出现大于1次的字符转为’)' 否则为'('
原题:The goal of this exercise is to convert a string to a new string where each character in the new string is '(' if that character appears only once in the original string, or ')' if that character a...原创 2018-06-02 16:28:26 · 487 阅读 · 0 评论