# -*- coding: utf-8 -*-
import os
import numba
import numpy as np
import cv2
from numba import jit
@jit
def aaa(ccc):
py_list = [0,1]
number_list = numba.typed.List([0])
cnts = numba.typed.Dict.empty(
key_type=numba.int64, value_type=numba.int64
)
# a_dict=numba.typed.Dict(asdfsdf)
for i in ccc:
number_list.append(i)
cnts[i] = i
# print(i[0])
return number_list,cnts
if __name__ == '__main__':
ccc=[0,1]
number_list,cnts=aaa(numba.typed.List(ccc))
print(number_list)
print(cnts)
来源:oschina
链接:https://my.oschina.net/u/4393788/blog/4939705