对于固定文件名格式提取信息比较好用
举例:
filename = "213939_213941-114042_114044.png" X1, X2, Y1, Y2, _ = tuple(re.split("[-_.]", filename)) # X1 = 213939 # X2 = 213941 # Y1 = 114042 # Y2 = 114044
2023-11-27 08:35:34
对于固定文件名格式提取信息比较好用
举例:
filename = "213939_213941-114042_114044.png" X1, X2, Y1, Y2, _ = tuple(re.split("[-_.]", filename)) # X1 = 213939 # X2 = 213941 # Y1 = 114042 # Y2 = 114044
下一篇:Flink:状态管理