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