import sys import csv import openpyxl def Csv2Excel(*arg): file_path = arg[0] wb = openpyxl.Workbook() ws = wb.active with open(file_path) as f: reader = csv.reader(f, delimiter='\t') for row in reader: ws.append(row) wb.save(file_path + '.xlsx')