题解 | 格式化输出(二)
格式化输出(二)
https://www.nowcoder.com/practice/3bd78a6de34a447fa49571a03f164fd3
a = input()
print(a.lower())
print(a.upper())
list1 = a.split(" ")
aa = ""
for str1 in list1:
b = str1[0].upper()
c = str1[1:len(a)].lower()
d = b+c
aa = aa+d+" "
print(aa)
Python真的不会,用Java的思路写的,竟然通过了,只能说是个骚操作。
