What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-30 23:45:20
Multiplication table with Python
first_doc = '''it created by iliya zahedi abghari i am the student in iran , alameh tabatabayi school ''' print(first_doc) def jadval_zarb(rows, columns): for i in range(1,rows+1): for j in range(1,columns+1): #print(i*j, end=' ') print('{:>... Add solution -
Other 2022-01-30 22:40:32
tqdm update with apply_async in multiprocessing
import time import random from multiprocessing import Pool from tqdm import tqdm def myfunc(a): time.sleep(random.random()) return a ** 2 pool = Pool(2) ''' for _ in tqdm(pool.imap_unordered(myfunc, range(100)), total=100): pass ''' pbar = t... Add solution -
Python 2022-01-30 19:01:57
python create video from images
import cv2 import numpy as np import glob img_array = [] for filename in glob.glob('C:/New folder/Images/*.jpg'): img = cv2.imread(filename) height, width, layers = img.shape size = (width,height) img_array.append(img) out = cv2.VideoWr... Add solution
Best helpers
Ranking is empty