def write_datetime(self, index): self.ws[index] = date_time_chinese() self.wb.save(self.excel_path)
def write_cell_current_time(self, row_no, col_no): self.sheet.cell(row=row_no, column=col_no).value = date_time_chinese() self.workbook.save(self.excel_file_path)
def write_cell_current_time(self,row_no,col_no): #return none self.get_cell(row_no, col_no).value = date_time_chinese() self.save_file(self.new_file_path)