Пример #1
0
 def readRange(self, params):
     start, end = params.split(',')
     start = int(start)
     end = int(end)
     answer = range(start, end+1)
     if _np and _np_array:
         answer = _np_array(answer)
     return answer
Пример #2
0
 def readRange(self, params):
     start, end = params.split(',')
     start = int(start)
     end = int(end)
     answer = range(start, end + 1)
     if _np and _np_array:
         answer = _np_array(answer)
     return answer
Пример #3
0
def build_rand_nparray(size):
    x = []
    for i in range(size):
        x.append(_random())
    return _np_array(x)