python split指定多个分隔符
对于固定文件名格式提取信息比较好用
举例:
filename = "213939_213941-114042_114044.png" X1, X2, Y1, Y2, _ = tuple(re.split("[-_.]", filename)) # X1 = 213939 # X2 = 213941 # Y1 = 114042 # Y2 = 114044