需求分析:
1匪傍、多個(gè)子網(wǎng)的單天H文件合暖璧。也就是同一天的H文件都排列到一起音半,并在文件地址 后面 加上一個(gè)符號(hào) “+”弄喘,而在單天內(nèi)最后一個(gè)文件不加該符號(hào)玖喘。
文件特征:
h1704051200_igs1.glx? h1706291200_igs7.glx? h1709211200_igs6.glx
h1704051200_igs2.glx? h1706291200_igs8.glx? h1709211200_igs7.glx
h1704051200_igs3.glx? h1706301200_igs1.glx? h1709211200_igs8.glx
h1704051200_igs4.glx? h1706301200_igs2.glx? h1709221200_igs1.glx
h1704051200_igs5.glx? h1706301200_igs3.glx? h1709221200_igs2.glx
h1704051200_igs6.glx? h1706301200_igs4.glx? h1709221200_igs3.glx
h1704051200_igs7.glx? h1706301200_igs5.glx? h1709221200_igs4.glx
h1704051200_igs8.glx? h1706301200_igs6.glx? h1709221200_igs5.glx
h1704061200_igs1.glx? h1706301200_igs7.glx? h1709221200_igs6.glx
h1704061200_igs2.glx? h1706301200_igs8.glx? h1709221200_igs7.glx
h1704061200_igs3.glx? h1707011200_igs1.glx? h1709221200_igs8.glx
如上所示,每個(gè)文件都是以.glx后綴結(jié)尾蘑志;第一個(gè)字符是h累奈,然后是10位的日期,例如:1704051200急但,表示2017年4月5日12點(diǎn)0分澎媒,然后是一個(gè)下劃線,然后是4個(gè)字符的子網(wǎng)代碼波桩。
最終效果:
h1704051200_igs1.glx +
h1704051200_igs4.glx +
h1704051200_igs5.glx
h1706291200_igs7.glx +
h1706291200_igs8.glx
-------------------------------------------------------------------------------------------------
python代碼如下:
------------------------------------------------------
```
```
---------------------------------------------------------