【问题标题】:Can someone tell me what is happening in the following code?有人可以告诉我以下代码中发生了什么吗?
【发布时间】:2022-06-17 23:28:12
【问题描述】:
import re 
def clean_strings(strings):
    result = []
    for value in strings:
      value = value.strip()
      value = re.sub('[!#?]','',value)
      value = value.title()
      result.append(value)
    return result

【问题讨论】:

标签: python function


猜你喜欢
  • 1970-01-01
  • 2019-12-02
  • 2020-02-21
  • 2020-10-30
  • 2010-11-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多