怎样在python中获取时间?

from time import strftime
date = strftime('%y%m%d')
hour = strftime('%H%M%S')
原文地址:https://www.cnblogs.com/Blaxon/p/4401896.html