Python Tips

Python Tips 一、float轉int,取整除比強轉更快python 測試代碼:web import time iter_num = 10000000 t1 = time.time() for a in range(iter_num): 2.3//1 t2 = time.time() for b in range(iter_num): int(2.3) t3 = time
相關文章
相關標籤/搜索