自制简历优化

This commit is contained in:
Àî×ÚÕñ 2022-09-21 17:51:55 +08:00
parent 2f990ef845
commit 4da9113f3f

View File

@ -381,7 +381,7 @@ def fmt_txt(chk_str):
new_chk_project = project_chk_str2.replace('\n', '').replace('', '').strip() new_chk_project = project_chk_str2.replace('\n', '').replace('', '').strip()
dict_project['comment'] += new_chk_project.split('职责')[0] dict_project['comment'] += new_chk_project.split('职责')[0]
dict_project['duty'] += new_chk_project.split('职责')[1].split('相关技术')[0] dict_project['duty'] += new_chk_project.split('职责')[1].split('相关技术')[0]
dict_project['work'] += new_chk_project.split('职责')[1].split('相关技术')[-1] dict_project['duty'] += new_chk_project.split('职责')[1].split('相关技术')[-1]
else: else:
project_chk_str2_list = re.split('(:|)', project_chk_str2) project_chk_str2_list = re.split('(:|)', project_chk_str2)
if project_chk_str2_list: if project_chk_str2_list:
@ -469,13 +469,13 @@ def fmt_txt(chk_str):
dict_project1 = copy.deepcopy(dict_project) dict_project1 = copy.deepcopy(dict_project)
dict_project1['name'] = re.split('[:|]', new_p_chk_list[0])[-1] dict_project1['name'] = re.split('[:|]', new_p_chk_list[0])[-1]
for p_str_true in new_p_chk_list: for p_str_true in new_p_chk_list:
if '开发环境' in p_str_true or '开发工具' in p_str_true or '开发技术' in p_str_true or '模块' in p_str_true: if '开发环境' in p_str_true or '开发工具' in p_str_true or '开发技术' in p_str_true:
dict_project1['work'] += re.split('[:|]', p_str_true)[-1] dict_project1['comment'] += re.split('[:|]', p_str_true)[-1]
continue continue
if '项目描述' in p_str_true or '功能介绍' in p_str_true: if '项目描述' in p_str_true or '功能介绍' in p_str_true:
dict_project1['comment'] += re.split('[:|]', p_str_true)[-1] dict_project1['comment'] += re.split('[:|]', p_str_true)[-1]
continue continue
if '职责' in p_str_true: if '职责' in p_str_true or '模块' in p_str_true:
dict_project1['duty'] += re.split('[:|]', p_str_true)[-1] dict_project1['duty'] += re.split('[:|]', p_str_true)[-1]
continue continue
project_undergo_list.append(dict_project1) project_undergo_list.append(dict_project1)
@ -497,8 +497,8 @@ def fmt_txt(chk_str):
dict_project1['time'] = i.split('')[-1] dict_project1['time'] = i.split('')[-1]
continue continue
if i.startswith('开发环境'): if i.startswith('开发环境'):
dict_project1['work'] += i.split('')[-1] dict_project1['comment'] += i.split('')[-1]
chk_key = 'work' chk_key = 'comment'
continue continue
if i.startswith('功能模块'): if i.startswith('功能模块'):
dict_project1['duty'] = i.split('')[-1] dict_project1['duty'] = i.split('')[-1]
@ -509,11 +509,12 @@ def fmt_txt(chk_str):
chk_key = 'comment' chk_key = 'comment'
continue continue
if i.startswith('技术要点'): if i.startswith('技术要点'):
dict_project1['work'] += i.split('')[-1] dict_project1['duty'] += i.split('')[-1]
chk_key = 'work' chk_key = 'duty'
continue continue
project_undergo_list.append(dict_project1) project_undergo_list.append(dict_project1)
else: else:
# if re.findall('([0-9]{4}[/|.][0-9]{1,2})', project_undergo2):
index2 = -1 index2 = -1
name2 = '' name2 = ''
new_str_list1 = [] new_str_list1 = []
@ -2308,4 +2309,4 @@ egreat海尔MeleA20MeleA31LG1154极米杰科亿典等机顶
""" """
fmt_txt(chk_str8) fmt_txt(chk_str9)