1.对一天中通话,按时段进行分析
输入数据为.txt文件,数据部分展示如下:
u110107_02169228380_530005_20190228125930_61AA.mp3
u110107_18895672550_530005_20190228165337_FFFFE06F.mp3
u110107_18895672550_530005_20190228165433_FFFFE0DC.mp3
u110107_18895672550_530005_20190228165854_FFFF9CB8.mp3
u110107_18895672550_530005_20190228180136_FFFFB997.mp3
u110107_18895672550_530005_20190228194425_14A8.mp3
u110107_18995436895_530005_20190228143208_FFFF8EDE.mp3
u110107_58033018_530005_20190228150349_5C59.mp3
u110108_530006_02160383434_20190228121640_5208.mp3
u110108_530006_02160383434_20190228134648_3117.mp3
u110108_530006_02160389247_20190228083435_FFFF803B.mp3
u110108_530006_02160389247_20190228084107_FFFF8232.mp3
u110108_530006_02160389247_20190228084154_FFFFCC23.mp3
u110108_530006_02160389263_20190228120132_4BAC.mp3
2.分析如下,返回数据为每个小时对应的通话量
import numpy as np
def phone_frequency_analysis():
with open("data/mp3_filenames.txt",'r'