代码示例:(标识:python_datetime_strftime_m_2)
python_datetime_strftime_m_2.py
import datetime

x = datetime.datetime.now()

print(x.strftime("%M"))
运行结果: