看板 [ Python ]
討論串[問題] psyco加速
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 9→)留言11則,0人參與, 最新作者Arton0306 (Ar藤)時間17年前 (2008/08/04 01:42), 編輯資訊
0
0
0
內容預覽:
我安裝後看文件在我寫的py檔開頭加了. import psyco. psyco.full(). 完全沒有加速. 程式是在跑一個大表格的dp.... 它是對純粹計算沒有加速嗎??. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 220.135.138.142. 編輯: Ar

推噓4(4推 0噓 13→)留言17則,0人參與, 最新作者Arton0306 (Ar藤)時間17年前 (2008/08/06 17:30), 編輯資訊
0
0
0
內容預覽:
import time. import psyco. psyco.full(). def b(x):. sun=0. for i in range(x):. sun+=i. print sun. t=time.clock(). b(10000000). print time.clock()-t. 我
首頁
上一頁
1
下一頁
尾頁