题目:时间函数举例1。
程序分析:
time云计 ctime() 函数把一个时间戳(按秒计算的浮点数算开)转化为time.asctime()的形发:式。
time asctime() 函数接受时间元Py组并返回一个可读的形式为"Tue Dec 11 1th8:07:14 2008"(2008年12月11日 周on二18时07分14秒)的24个字符的字符串练习。
程序源代码:
以上实例输出结果为:
Copyright © 2016 Powered by 云计算开发:Python练习实例-时间函数举例,四山五岳网 sitemap