python line to get the current time

import time
print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())))
Published 17 original articles · won praise 1 · views 698

Guess you like

Origin blog.csdn.net/ouersl/article/details/104072709