rongye
import os
import re
import pathlib
from struct import *
import pandas as pd
import numpy as np
pathdir = "G:" 
files = np.array(os.listdir(pathdir))
#file_names = np.char.add(pathdir + "\\", files)
file_names =[pathdir+"\\"+f for f in files if re.search(\'.csv$\',f)]


df_all["name"] = df_all["name"].str.replace("SH","1_")
df_all["begin"] = df_all["name"].map(str) + df_all["date"].map(str)
df_all = df_all.reset_index(drop=True)
df1 = pd.read_csv(file)
df_all = df_all.append(df1)
f3 = open(file,mode=\'rb\')
buf = f3.read()


        date = unpack("I",buf[b:e-4])
        con = unpack("f",buf[b+4:e])
fw.write(pack("I",int(df_all.loc[i,"date"])))
fw.write(pack("f",df_all.loc[i,"content"]))




分类:

技术点:

相关文章:

  • 2021-05-19
  • 2021-10-30
  • 2022-02-01
  • 2021-06-05
  • 2021-07-30
猜你喜欢
  • 2021-09-19
  • 2021-11-07
  • 2021-12-26
  • 2022-01-17
  • 2021-09-14
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案