๋ฐ์ํ
์๊ฐ์ธก์ ์ด์๊ฒ ํ๋ ๋ฐฉ๋ฒ
import math
import time
import datetime
start = time.time()
math.factorial(12345678910)
end = time.time()
sec = (end - start)
result = datetime.timedelta(seconds=sec)
print(result)
result_list = str(datetime.timedelta(seconds=sec)).split(".")
print(result_list[0])
๋ฐ์ํ
'๐๏ธ์ํํธ์จ์ด > ๐ปpython' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[python] ํฌ๋กค๋ง implicit wait vs time.sleep (0) | 2021.11.25 |
---|---|
[python] ํฌ๋กค๋ง์ ํ์ํ ํจ์ : filter, lambda, map (0) | 2021.11.25 |
Kernel died with exit code 1073741845 ์๋ฌ (0) | 2021.11.23 |
selenium.webdriver.common.keys (0) | 2021.11.23 |
[python] crawling customizing (0) | 2021.11.22 |