forked from tdwojak/Python2017
labs04 z1
This commit is contained in:
parent
b5a3890c93
commit
d267afe390
@ -8,6 +8,3 @@ def is_numeric(InputList):
|
|||||||
OutputLits.append(isinstance(t,(int, float)))
|
OutputLits.append(isinstance(t,(int, float)))
|
||||||
#print(isinstance(x,(int, float)))
|
#print(isinstance(x,(int, float)))
|
||||||
return OutputLits
|
return OutputLits
|
||||||
|
|
||||||
x = is_numeric([1,2.3,'safd',2.2,[1,2]])
|
|
||||||
print(x)
|
|
@ -1,3 +1,5 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
class Employee:
|
||||||
|
def __init__(self, ,):
|
@ -1,3 +1,19 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
def is_numeric(InputList):
|
||||||
|
OutputLits = []
|
||||||
|
for i in range(len(InputList)):
|
||||||
|
t = InputList[i]
|
||||||
|
OutputLits.append(isinstance(t,(int, float)))
|
||||||
|
return OutputLits
|
||||||
|
|
||||||
|
class Point:
|
||||||
|
def __init__(self, StartList):
|
||||||
|
self.StartList = StartList
|
||||||
|
|
||||||
|
def retx(self):
|
||||||
|
return self
|
||||||
|
|
||||||
|
x = Point([2])
|
||||||
|
print(x.retx())
|
Loading…
Reference in New Issue
Block a user