File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ class DetailResume(object):
5757 """
5858 简历详细信息
5959 """
60+ # 定义基本属性
61+ edu_list = [] # 教育经历
62+ work_list = [] # 工作经历
63+ project_list = [] # 项目经历
64+ train_list = [] # 培训经历
65+ cert_list = [] # 证书
66+ skill_list = [] # 技能
67+
6068 # 定义构造方法
6169 def __init__ (self , ** kwargs ):
6270 for key , value in kwargs .iteritems ():
@@ -100,7 +108,7 @@ def test_03():
100108 'name' : 'Tom' ,
101109 'sex' : 'M'
102110 },
103- 'edu ' : [
111+ 'edu_list ' : [
104112 {
105113 'school' : 'S-ABC' ,
106114 'degree' : u'学历1' ,
@@ -112,7 +120,7 @@ def test_03():
112120 'major' : u'专业2'
113121 }
114122 ],
115- 'work ' : [
123+ 'work_list ' : [
116124 {
117125 'company' : 'C-DGG' ,
118126 'job' : 'J-DGG'
@@ -125,7 +133,7 @@ def test_03():
125133 }
126134 detail_resume = DetailResume (** data )
127135 print isinstance (detail_resume , DetailResume )
128- print type (detail_resume .work ), detail_resume .work
136+ print type (detail_resume .work_list ), detail_resume .work_list
129137 except Exception , e :
130138 print e .message
131139
You can’t perform that action at this time.
0 commit comments