#! /usr/bin/python

import time

current_time = time.strftime("%Y-%m-%d %H:%M")

print current_time

结果:

spdbmadeMacBook-Pro:python spdbma$ ./test.py 
2016-03-18 14:42

 

相关文章:

  • 2022-12-23
  • 2021-12-22
  • 2021-12-22
  • 2021-10-05
  • 2021-10-27
  • 2022-01-01
  • 2022-02-04
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-06-15
  • 2022-12-23
相关资源
相似解决方案