Discuss / Python / 第一题

第一题

Topic source

def normalize(name):

    L=list(name)

    L2=[]

    for x in L:

        L2.append(x.lower())

    L2[0] = L2[0].upper()

    str=''.join(L2)

    return str


  • 1

Reply