As a Python programmer, you can generate a unique Python resume on the command line through the following code.
1 #/usr/bin/env python? 2 # encoding =utf-8? 3 ? 4 import random? 5 imported re? 6 ? 7 ? 8 def color (message):? 9 color = ' \ x 1B[% d; %dm' % ( 1,random.randint(30,37)) 10 return ' % s % s \ x 1B[0m ' %(color,messages) 1 1? 12 ? 13 def colorprint(mes, flag = True): 14 def _ deco(func): 15 def wrapper(args): 16 RES = func(args) 17 print(color(mes+':\ n ') 18 if flag: 19 for k 1,v 1 in res.items().format(k 1,v 1)) 22 else: 23 print ('{0}:'。 format(k 1)) 24 for k2,v2 in v 1 . items():25 print(' { 0 }:{ 1 } '。 format(k2,v2))26 else:27 for I in RES:28 if not is instance(I[ 1],dict):29 print(I)30 else:3 1 for k,v in i[ 1]。 items():32 print(' { 0 }[{ 1 }]:{ 2 } '。 format(k,i[0],v))33 print(' \ n ')34 return RES 35 return wrapper 36 return _ deco 37? 38 ? 39 resumes (target): 40? 4 1 def str (self): 42 Return color ('Cheng Jian's python resume'). Center (400)) 43? 44 @property 45 @colorprint ('personal information') 46 def _ personal _ information (self): 47 return {48' name':' Cheng Jian', 49' sex':' male', 50' birth': [1987,9,/. 5 1' education': {52' school name':' Taiyuan university of science and technology', 53' major':' electrical engineering and automation', 54' degree':' undergraduate', 55' graduation': 20655 mode 6 1} 62? 63 @property 64 @colorprint ('personal characteristics') 65 def characteristics (self): 66 return {67' Strong psychological endurance':' From non-computer major -excel VBA automation -Python development', 68' Enthusiasm and love':' I gave up purchasing management just because I like Python', 69' Strong self-study ability':' Self-study excel VBA and Python to complete the project and meet the needs', 70' Perseverance and patience':' 2065438+8 days cycling from Shanghai to my hometown in July 2003 74 @property 75 @colorprint ('personal ability') 76 def skills (self). : 77 return {78' language': {79' familiar with': ['Python',' VBA'], 80' understanding': ['JavaScript',' c']}, 8 1' OS': ['Mac OS',' Ubuntu',' ' Ipython ',Git'],83 ' databasandtools ':[' MongoDB ',' Redis ',' Memcached']。 92 @property 93 @colorprint ('work experience', True) 94 defwork _ experience (self): 95 return enumeration ([96 {97' time period':' 2013.8-2017.01',98' company name':' Shanghai Suo Guangying Image Co., Ltd. 99' Position':' Procurement Management' 100}, 106544, 1 14' Description': ('In inventory management and procurement business promotion, I learned excel formula and VBA by myself,'1/. Automation of various businesses through excel VBA) 1 16},117 {118' Project':' Snowball Portfolio Analysis Tool',1/kloc. Obtain the position adjustment information of the portfolio concerned by Snowball ID and the accumulated stock positions of the portfolio concerned. ) 12 1}, 122 {123' Project':' Django by Example', 124' Description': ('Django by Example' has four complete Django projects, and Shopping websites and online education websites. I handwritten the code line by line, and after debugging successfully, I commented the code line by line. ) 126}, 127 {128' Project':' Django-CMS source code analysis', 129' Description': ('Still in progress. As a large Django project and a mature website generation tool, the source code of' 130 'Django-CMS can be used as an authoritative reference for the implementation of Django project. ) 13 1 } 132]) 133 134 @ property 135 @ color print(' @ Where ', False) 136 def find me(self): 137 return enumerate([ 138 { 139 ' Link ':' blogs . com/newer 027
View code
The following is the result of running the code in the macOS Python 3.5 environment.
Hope to adopt. Thank you.
I hope it helps you.