Advertisement
BERKYT

Untitled

Nov 12th, 2021
799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.15 KB | None | 0 0
  1.     with open(path) as isfile:
  2.         reader = csv.DictReader(isfile)
  3.         dict_reader = {}
  4.         list_keys = []
  5.         for row in reader:
  6.             list_keys.append(str(row).split(':'))
  7.         print(list_keys[0])
  8.  
  9.         print(dict_reader)
  10.         for i in range(len(list_prefix)):
  11.             # print('i ', i)
  12.             for j in range(1, 17):
  13.                 # print('j ', j)
  14.                 for k in range(len(list_question_to_response)):
  15.                     # print('k ', k)
  16.                     try:
  17.                         list_csv_file[0].append('{2}{0}.{1}'.format(j, list_question_to_response[k], list_prefix[i]))
  18.                     except Exception as e:
  19.                         print(e)
  20.                     for row in reader:
  21.                         print('{2}{0}.{1}'.format(j, list_question_to_response[k], list_prefix[i]), end=' = ')
  22.                         print(parse_time(row['{2}{0}.{1}'.format(j, list_question_to_response[k], list_prefix[i])]))
  23.                         list_csv_file.append(list(row['{2}{0}.{1}}'
  24.                                                   .format(j, list_question_to_response[k], list_prefix[i])]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement