废话不多说,先上一张图 :
完整代码以及数据:https://download.csdn.net/download/bamboo265925/11548633(提供支持,公众号:海之鹰工作室)
import os
import math
import matplotlib.pyplot as plt
def readTxtShow(rootdir):
with open(rootdir, 'r',encoding='utf-8') as file_to_read:
while True:
line = file_to_read.readline()
line = line.strip('\n')
lineStr=line.split(",")
if not line:
break