《python怎么取消空格》有1条评论

  1. >>> site_name = ' chiplayout '
    >>> site_name.rstrip()
    ' chiplayout'
    >>> site_name.lstrip()
    'chiplayout '
    >>> site_name.strip()
    'chiplayout'

    回复

发表评论