HEOP 发表于 2020-7-24 12:15:02

楼主可以啊

陈尚涵 发表于 2020-7-24 15:00:27

我看看

QuinLan 发表于 2020-7-24 16:10:45

好想知道加的是什么哈哈哈哈

leizi666 发表于 2020-7-24 17:30:18

顶一下

陈尚涵 发表于 2020-8-18 20:34:41

我为啥报了一堆错误:
Warning (from warnings module):
File "C:\Users\Administrator\Desktop\a.py", line 3
    @jit
NumbaWarning: 
Compilation is falling back to object mode WITH looplifting enabled because Function "foo" failed type inference due to: Unknown attribute 'time' of type Module(<module 'time' (built-in)>)

File "a.py", line 5:
def foo(x,y):
      tt = time.time()
      ^

During: typing of get attribute at C:\Users\Administrator\Desktop\a.py (5)

File "a.py", line 5:
def foo(x,y):
      tt = time.time()
      ^


Warning (from warnings module):
File "C:\Users\Administrator\Desktop\a.py", line 3
    @jit
NumbaWarning: 
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "foo" failed type inference due to: cannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>

File "a.py", line 7:
def foo(x,y):
    <source elided>
      s = 0
      for i in range(x,y):
      ^


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: Function "foo" was compiled in object mode without forceobj=True, but has lifted loops.

File "a.py", line 5:
def foo(x,y):
      tt = time.time()
      ^


Warning (from warnings module):
File "D:\python38\lib\site-packages\numba\core\object_mode_passes.py", line 187
    warnings.warn(errors.NumbaDeprecationWarning(msg,
NumbaDeprecationWarning: 
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

File "a.py", line 5:
def foo(x,y):
      tt = time.time()
      ^


贰耇孜 发表于 2020-8-18 22:35:23

看看

sansansa 发表于 2020-8-18 23:13:08

kkkk

mzx666 发表于 2020-8-19 11:01:10

6666666666666666666

hornwong 发表于 2020-8-19 11:07:48

{:5_95:}

lingfeng7434 发表于 2020-8-19 11:19:40

看到底如何

lijiachen 发表于 2020-8-19 11:21:12

简直就是为了欧拉计划而生(我拥有一堆算不完的暴力解法)

hu504011383 发表于 2020-8-19 14:03:18

跟大哥混有饭吃

guo763939889 发表于 2020-8-19 15:40:39

我来看看

十亿 发表于 2020-8-19 15:49:58

看一看

z2x2c8 发表于 2020-8-20 21:54:58

看看

冰清玉洁丸 发表于 2020-8-20 22:08:54

感谢楼主无私奉献

841462569 发表于 2020-8-20 22:18:18

??????????

miku520 发表于 2020-8-25 00:21:49

看看

jtxs0000 发表于 2020-8-25 09:29:57

{:10_275:}

ericshuiSC 发表于 2020-8-25 14:11:13

打开看看
页: 174 175 176 177 178 179 180 181 182 183 [184] 185 186 187 188 189 190 191 192 193
查看完整版本: 加一行代码让python的运行速度提高100倍