好想知道加的是什么哈哈哈哈
顶一下
我为啥报了一堆错误:
Warning (from warnings module):
File "C:\Users\Administrator\Desktop\a.py", line 3
@jit
NumbaWarning: [1m
Compilation is falling back to object mode WITH looplifting enabled because Function "foo" failed type inference due to: [1m[1mUnknown attribute 'time' of type Module(<module 'time' (built-in)>)
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m
[0m[1mDuring: typing of get attribute at C:\Users\Administrator\Desktop\a.py (5)[0m
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m
Warning (from warnings module):
File "C:\Users\Administrator\Desktop\a.py", line 3
@jit
NumbaWarning: [1m
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "foo" failed type inference due to: [1m[1mcannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>[0m
[1m
File "a.py", line 7:[0m
[1mdef foo(x,y):
<source elided>
s = 0
[1m for i in range(x,y):
[0m [1m^[0m[0m
[0m[0m
Warning (from warnings module):
File "D:\python38\lib\site-packages\numba\core\object_mode_passes.py", line 177
warnings.warn(errors.NumbaWarning(warn_msg,
NumbaWarning: [1mFunction "foo" was compiled in object mode without forceobj=True, but has lifted loops.
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
[0m
Warning (from warnings module):
File "D:\python38\lib\site-packages\numba\core\object_mode_passes.py", line 187
warnings.warn(errors.NumbaDeprecationWarning(msg,
NumbaDeprecationWarning: [1m
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
[1m
File "a.py", line 5:[0m
[1mdef foo(x,y):
[1m tt = time.time()
[0m [1m^[0m[0m
看看
kkkk
6666666666666666666
{:5_95:}
看到底如何
简直就是为了欧拉计划而生(我拥有一堆算不完的暴力解法)
跟大哥混有饭吃
我来看看
看一看
看看
感谢楼主无私奉献
??????????
看看
{:10_275:}
打开看看
看看
看看