原文:https://www.jb51.net/article/172982.htm

import re

str1='访客-2020-03-22 235119.xlsx'

m = re.search("(\d{4}-\d{1,2}-\d{1,2})", str1)
print(type(m))

strdate = m.group(1)

print(strdate)

相关文章:

  • 2021-06-09
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-12-22
  • 2021-11-21
相关资源
相似解决方案