- 注册
- 2003-09-30
- 消息
- 79,539
- 荣誉分数
- 23,889
- 声望点数
- 1,373
下午出去遛个弯今天阳光好,真的不冷。
这是几年级孩子的功课?孩子在学PYTHON 卡在这道题上了,请指点一下
Instructions
Write a function upper_lower that consumes a string plainand produces a string with the same characters as in plainexcept that all letters in the first half of the string are in upper case and all the rest of the letters are in lower case. Non-letters should be the same.
If the length of the string is odd, the "first half" should contain the middle character.
Warning: Make sure to use the name of the function given in the instructions.
小学四年级,自己学着玩这是几年级孩子的功课?