赞
踩
- # coding=utf-8
-
- # 存放姓氏和名字的变量
- first_name = input()
- last_name = input()
-
- # 请在下面添加字符串拼接的代码,完成相应功能
- ########## Begin ##########
- full_name = first_name + " " + last_name
- print(full_name)
-
- ########## End ##########
- # coding=utf-8
-
- # 获取待处理的源字符串
- source_string = input()
-
- # 请在下面添加字符串转换的代码
- ########## Begin ##########
- string1 = source_string.strip()
- string2 = string1.title()
- length = len(string1)
- print(string2)
- print(length)
-
-
-
- ########## End ##########
-
- # coding = utf-8
- source_string = input()
-
- # 请在下面添加代码
- ########## Begin ##########
- print(source_string.find('day'))
- print(source_string.replace('day','time'))
- s=source_string.replace('day','time')
- print(s.split(' '))
-
-
-
- ########## End ##########
-
-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。