for i in listok:
for j in listok:
distance = np.linalg.norm(i - j)
pp.pprint(distance)
print("--------------------")
0.0
0.7254836570289817
0.061657901382796504
0.043964488622758764
--------------------
0.7254836570289817
0.0
0.7212297627045093
0.7293569116908897
--------------------
0.021657901382796504
0.7212297627045093
0.0
0.039753586757735654
--------------------
0.053964488622758764
0.7293569116908897
0.059753586757735654
0.0
img = io.imread(BytesIO(img2.content))
try:
namefile=input("File-Cover: ")
size = os.path.getsize(namefile)
print(size)
with open(namefile, 'rb') as file1:
read1=file1.read()
except FileNotFoundError:
print("[x] File: '"+str(namefile)+"' is not defined!")
raise SystemExit
try:
zipfile=input("Zip-File: ")
with open(zipfile, 'rb') as file2:
read2=file2.read()
except FileNotFoundError:
print("[x] File: '"+str(zipfile)+"' is not defined!")
raise SystemExit
namefile=input("File-Result: ")
with open(namefile, 'wb') as file3:
file3.write(read1)
file3.write(read2)
print("[+] File: "+str(namefile)+" successfully overwritten!")
file3.close()
with open('OUT.rar', 'wb') as file4:
file3 = open(namefile, 'rb')
file3.read(size)
file4.write(file3.read())
file4.close()
try:
namefile=input("File-Cover: ")
size = os.path.getsize(namefile)
print(size)
with open(namefile, 'rb') as file1:
read1=file1.read()
except FileNotFoundError:
print("[x] File: '"+str(namefile)+"' is not defined!")
raise SystemExit
try:
zipfile=input("Zip-File: ")
with open(zipfile, 'rb') as file2:
read2=file2.read()
except FileNotFoundError:
print("[x] File: '"+str(zipfile)+"' is not defined!")
raise SystemExit
namefile=input("File-Result: ")
with open(namefile, 'wb') as file3:
file3.write(read1)
file3.write(read2)
print("[+] File: "+str(namefile)+" successfully overwritten!")
file3.close()
with open('OUT.rar', 'wb') as file4:
file3 = open(namefile, 'rb')
file3.read(size)
file4.write(file3.read())
file4.close()
class test:
def init(self):
self.x = 5
def print_(self):
print(self.x)
w = 1
def init():
print(w)
import test
import threading
w = 2
there_is_no_spoon = threading.Thread(target=test.init)
there_is_no_spoon .start()