持续更新中… 1. 计算程序运行时间 import time start = time.time() xxx xxx end = time.time() running_time=end-start #unit: second