def split_list(mypath,need_list):
'分离已有日线文件的股票代码'
if len(need_list) < 2:
print('没有需要需要计算数据的文件!!!')
return [],[]
print('正在分析股票代码……\n')
exist_list = find_file(mypath,need_list) #提取已有数据的文件名
for each in exist_list:
#提取新增股票列表
if each in need_list:
need_list.pop(need_list.index(each))
return need_list,exist_list