import csv
fo = open("result.txt", "w+")
reader = csv.reader(open('test.csv'))
for line in reader:
    Name = line[0]    
    fo.writelines(['class ',Name,'{\n'])            
fo.writelines('};\n')    
fo.close()

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-08-02
  • 2021-07-28
  • 2022-12-23
  • 2021-11-23
  • 2021-07-20
猜你喜欢
  • 2021-07-29
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案