📜  python打印运行需要多长时间 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:58.802000             🧑  作者: Mango

代码示例1
import time
start_time = time.time()
 #your program
print ("My program took", time.time() - start_time, "to run")