Python localtime()方法类似于gmtime()方法,但其转换秒数为本地时间。如果secs未提供或为None,当前时间调用time()返回其结果。 当DST适用于给定的时间, dst标志被设置为1。