python 正则表达式--提取日期 替换IP为一个固定路径
import restudyDate = '2018-08-09 12:10'dateidentifier = studyDate[0:10]pattern = re.compile(r'\d+')temp = re.findall(pattern, dateidentifier)date = "".join(temp)print(date)import repath = r"...