-
Notifications
You must be signed in to change notification settings - Fork 0
/
FUNCIONES_AGUA.py
48 lines (38 loc) · 1.02 KB
/
FUNCIONES_AGUA.py
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
import re
def ValidaModelo(model1,model2,model3,model4,model5,model6,model7,model8):
exreg = '\d'
p = re.compile(exreg)
m = p.search(model1)
m2 = p.search(model2)
m3 = p.search(model3)
m4 = p.search(model4)
m5 = p.search(model5)
m6 = p.search(model6)
m7 = p.search(model7)
m8 = p.search(model8)
if (m) and (m2) and (m3) and (m4) and (m5) and (m6) and (m7) and (m8):
return True
else:
return False
def unafuncion (model1,model2,model3,model4):
exreg = '\d'
p = re.compile(exreg)
m1 = p.search(model1)
m2 = p.search(model2)
m3 = p.search(model3)
m4 = p.search(model4)
if (m1) and (m2) and (m3) and (m4):
return True
else:
return False
def segundafuncion(model5,model6,model7,model8):
exreg = '\d'
p = re.compile(exreg)
m5 = p.search(model5)
m6 = p.search(model6)
m7 = p.search(model7)
m8 = p.search(model8)
if (m5) and (m6) and (m7) and (m8):
return True
else:
return False