如下写法
def run1(data,data1,**kwargs):
print(data,data1,kwargs)
if __name__ == '__main__':
run1(123,321534,data34 = 'asdf')
- data1和data2为已经设定过了的参数,直接传进去,data34为没有设定的参数,也可通过kwargs传进去
打印的结果是
123 321534 {'data34': 'asdf'}
def run1(data,data1,**kwargs):
print(data,data1,kwargs)
if __name__ == '__main__':
run1(123,321534,data34 = 'asdf')
123 321534 {'data34': 'asdf'}
© 本文著作权归作者所有,转载前请务必署名
>>>a = '1'>>>print(a)1>>>b = '1'.zfill(2*4)>>>print(b)00000001
import imageio, os, sysdef png_gif(path): png_lst = os.listdir(path) frames = [] for i in png_lst: frames.append(imageio.imread(path +
let's use torch to create first neural network: according we input data to trainning model by itself.import torchfrom torch.nn import functionalfrom m
IssueMaybe after you installed torch, you will found your graphics card can't available on your torch. I guess you must use pip repo or conda repo to
identify verify code imagemachine learnning - identification verify code image - [opencv to identify string, machine learning to identify what string]