-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoftware_version.py
More file actions
107 lines (55 loc) · 1.27 KB
/
software_version.py
File metadata and controls
107 lines (55 loc) · 1.27 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
101
102
103
104
105
106
import re
b = open('test.txt', "r")
d = []
#c = []
for i in b:
c = i.split()
#print c[0],c[4],c[6],c[7]
d.append(c[8])
for j in d:
if j != '200':
print c[0],c[3],c[4],c[6],c[7]
#c = re.compile(r'\d+\.\d+\.\d+\.\d+\ \-*\ \-*\ \[\d+')
#d = re.match(c,i)
#print d.group()
#class x():
# def __init__(self,l):
# self.l = l
# def check(self):
# d = []
# if self.l >16:
# d.append(self.l)
# return d
#c = x(20)
#print c.check()
#class Triangle():
# def __init__(self,angle1,angle2,angle3):
# self.angle1 = angle1
# self.angle2 = angle2
# self.angle3 = angle3
# number_of_sides = 3
# def check_angles(self):
# if self.angle1 + self.angle2 + self.angle3 == 180:
# return True
# else:
# return False
#my_triangle = Triangle(90,30,60)
#print my_triangle.check_angles()
#print my_triangle.number_of_sides
#class bank:
# def __init__(self,name,balance):
# self.name = name
# self.balance = balance
# def withdraw(self,amount):
# if amount > self.balance:
# print "fail"
# else:
# self.balance = self.balance - amount
# self.balance = balance
# return self.balance
# def deposit(self,amount):
# if amount > 0:
# self.balance = self.balance + amount
# return self.balance
#d = bank('Deepesh',100)
#print d.withdraw(50)