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

x = datetime.datetime.now()

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