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

x = datetime.datetime.now()

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