added changes on checking similarity

This commit is contained in:
kicap1992
2022-03-21 00:07:28 +08:00
parent 638f0a9aee
commit 9da68fbc38
172 changed files with 99465 additions and 49 deletions

19
base/api/haystack.py Normal file
View File

@ -0,0 +1,19 @@
class haystack:
""" haystack represents a single entry in the database
it contains a sequence of integers """
def __init__(self,name,data):
self.name=name
self.data=data
self.length = len(data)
def get_data(self):
return self.data
def get_name(self):
return self.name
def get_length(self):
return self.length