以下是localtime()方法的语法:
time.localtime([ sec ])
参数
返回值
此方法不返回任何值。
例子
下面的例子显示了localtime()方法的使用。
#!/usr/bin/python import time print "time.localtime() : %s" % time.localtime()
当我们运行上面的程序,它会产生以下结果:
time.localtime() : (2009, 2, 17, 17, 3, 38, 1, 48, 0)
Copyright © 2019- gamedaodao.com 版权所有 湘ICP备2022005869号-6
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务