Discuss / Python / 第一题

第一题

Topic source

花了半小时做了这么一道题:

def normalize(name):

L = name.lower()

print(L)

L1 = name[:1].upper()

print(L1)

L21 = L[1:]

print(L21)

L3= ''.join([L1,L21])

return L3


  • 1

Reply