📜  如何为 Python 脚本计时 - Python 代码示例

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

代码示例1
from datetime import datetime
start = datetime.now()
# some kind of code
print(datetime.now() - start)