📜  python 获取一天中的时间 - Python 代码示例

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

代码示例2
from datetime import datetime

now = datetime.now()

current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)