Discuss / Python / 人生苦短,我用Python

人生苦短,我用Python

Topic source

hcie_zpc

#1 Created at ... [Delete] [Delete and Lock User]
    if len(s) == 0:
       return ''
    
    while s[:1] == ' ':
          s = s[1:]
    while s[-1:] == ' ':
          s = s[:-1]
    return s

  • 1

Reply