源代码
import datetime x = datetime.datetime.now() print(x.strftime("%S"))
运行结果