摘要: def del_endswith_none(str1: str): """ 删除字符串首尾的空字符(空格、换行) :param str1: """ s = str1 if str1 is not None: while True: if s.endswith(' ') or s.endswith(' 阅读全文
posted @ 2020-11-02 13:47 淡怀 阅读(969) 评论(0) 推荐(0)