import time t = time.gmtime() time.strftime("%Y-%m-%d %H:%M:%S",t)
这哪有问题啊,给我报错SyntaxError: multiple statements found while compiling a single statement
import time t = time.gmtime() print(time.strftime("%Y-%m-%d %H:%M:%S",t))
我又会了哈哈