Discuss / Python / zuoye

zuoye

Topic source

伏瑞斯

#1 Created at ... [Delete] [Delete and Lock User]

    while s[0:1] == " ":

         s=s[1:]

    while s[-2:-1] == " ":

         s=s[0:-2]      

    return s


  • 1

Reply