有会用PYTHON 语言的朋友,请帮个忙

正解

早上到了办公室
1. 吃早饭
2. 喝咖啡
3. 上网灌水看新闻

中午吃过午饭再考虑今天是否要工作。。。
生活不健康啊。中午这么好的天儿,外边遛个弯儿,gym跑个步什么的,多美好!:p
然后吃午饭,打个盹,再考虑人生大事。
 
孩子在学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.
这是几年级孩子的功课?
 
后退
顶部
首页 论坛
消息
我的