7 lines
165 B
Python
7 lines
165 B
Python
from datetime import datetime
|
|
|
|
|
|
# 获取yyyy-MM-dd HH:mm:ss格式的当前时间
|
|
def get_default_datetime():
|
|
return datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|