Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open(path) as isfile:
- reader = csv.DictReader(isfile)
- dict_reader = {}
- list_keys = []
- for row in reader:
- list_keys.append(str(row).split(':'))
- print(list_keys[0])
- print(dict_reader)
- for i in range(len(list_prefix)):
- # print('i ', i)
- for j in range(1, 17):
- # print('j ', j)
- for k in range(len(list_question_to_response)):
- # print('k ', k)
- try:
- list_csv_file[0].append('{2}{0}.{1}'.format(j, list_question_to_response[k], list_prefix[i]))
- except Exception as e:
- print(e)
- for row in reader:
- print('{2}{0}.{1}'.format(j, list_question_to_response[k], list_prefix[i]), end=' = ')
- print(parse_time(row['{2}{0}.{1}'.format(j, list_question_to_response[k], list_prefix[i])]))
- list_csv_file.append(list(row['{2}{0}.{1}}'
- .format(j, list_question_to_response[k], list_prefix[i])]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement