-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjGenerator.py
More file actions
100 lines (95 loc) · 4.26 KB
/
ObjGenerator.py
File metadata and controls
100 lines (95 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#! /bin/python
# _*_ encoding: utf-8 _*_
import sys, os
from datetime import datetime
###########
W = '\033[37m'
R = '\033[1;31m' # red
G = '\033[1;32m' # green
O = '\033[0;33m' # orange
B = '\033[1;34m' # blue
P = '\033[1;35m' # purple
C = '\033[1;36m' # cyan
GRs = '\033[1;37m' # gray
global frza, ok, err, inf
frza = W+'frza '
ok = G+'OK '+W
err = R+'ERR '+W
inf = B+'INF '+W
sh = os.system
dic = {'name': '', 'lastname': '', 'nickname': '', 'nacimiento': '', 'email': '', 'skin': '', 'gender': ''}
def banner():
print("""
.---.
/_____\
( '.' )
\_-_/_
.-"`'V'//-.
/ , |// , \
/ /|Ll //Ll|\ \ ___ _ _ ___ _
/ / |__// | \_\ /___\ |__ (_) / _ \___ _ __ ___ _ __ __ _| |_ ___ _ __
\ \/---|[]==| / / // // '_ \| |/ /_\/ _ \ '_ \ / _ \ '__/ _` | __/ _ \| '__|
\/\__/ | \/\/ / \_//| |_) | / /_\\ __/ | | | __/ | | (_| | || (_) | |
|/_ | Ll_\| \___/ |_.__// \____/\___|_| |_|\___|_| \__,_|\__\___/|_|
|`^'''^'| |__/
| | | By Mrx04programmer
| | |
| | | Información necesaria : nombre, apellido, fecha de nacimiento, email.
| | | Información extra puede ser: ocupacion, numeros, etc.
L___l___J
|_ | _|
(___|___)
^^^ ^^^ """)
def men():
print("""
,-----.
/' `\
; ----,---- ;
| `o- |`o- |
| |_ | Nombre :"""+str(dic['name'])+' '+str(dic['lastname'])+"""
| _____, | Apodo :"""+str(dic['nickname'])+' Cumpleaños : '+str(dic['nacimiento'])+"""
\_ _/ Correo :"""+str(dic['email'])+' Piel : '+str(dic['skin'])+"""
| `-----' | Género :"""+str(dic['gender'])+"""
__.-; ;-.__
_,-' ; : ; ; `-._
_,' `.
,`-,_____ \ : : / ____,-'-,""")
def women():
print("""
.-'''---.
.' .-. `.
.' .' ; `. \
/ / : \ \ Nombre :"""+str(dic['name'])+' '+str(dic['lastname'])+"""
/ /-.___;\ ; ; Apodo :"""+str(dic['nickname'])+' Cumpleaños : '+str(dic['nacimiento'])+"""
/ :;--. .-^-.: : Correo :"""+str(dic['email'])+' Piel : '+str(dic['skin'])+"""
: ;:` : : Género :"""+str(dic['gender'])+"""
; : ; ; ;
: ; : + / .'
\ ; \ --' .:s-"
"-:.-"`.__.-";
: :
; :
_..+-""._ _"t-.._
.-" \ " ' : `. """)
sh('clear')
banner()
try:
dic['name'] = str(input(C+'Nombre >> '+W))
dic['lastname'] = str(input(C+'Apellido >> '+W))
dic['nickname'] = str(input(C+'Apodo >> '+W))
dic['nacimiento'] = str(input(C+'Fecha de Nacimiento(DD/MM/AAAA)>> '+W))
dic['email'] = str(input(C+'Email >> '+W))
dic['skin'] = str(input(C+'Color de Piel >> '+W))
dic['gender'] = str(input(C+'Género(Hombre/Mujer) >> '+W))
sh('clear')
print('*'*50)
print('Profile : '+dic['name']+' '+dic['lastname'])
print('*'*50)
if(dic['gender'] == 'Mujer' or dic['gender'] == 'mujer'):
women()
if(dic['gender'] == 'Hombre' or dic['gender'] == 'hombre'):
men()
except ValueError as e:
print(frza+err+'Error ! {}'.format(e))
# except TypeError as e:
# print(frza+err+'Error ! {}'.format(e))