import json
class Students(object):
def __init__(self):
self.st=r'["Tim","Bob","Alice"]'
def read(self):
return self.st
s = Students()
print json.load(s)
class Students(object):
def __init__(self):
self.st=r'["Tim","Bob","Alice"]'
def read(self):
return self.st
s = Students()
print json.load(s)
2016-04-14
import math
def is_sqr(x):
return math.sqrt(x)
print filter(len(is_sqr)<3, range(1, 101))
def is_sqr(x):
return math.sqrt(x)
print filter(len(is_sqr)<3, range(1, 101))
2016-04-14