【发布时间】:2015-02-23 13:34:53
【问题描述】:
import time;
localtime = time.asctime( time.localtime(time.time()) )
print "Local current time :", localtime
我试图弄清楚如何添加这样的写命令: “明天。”然后将在日历中的第二天打印出来,依此类推。 我已经设法获取日历,但我需要有关如何将命令连接到它的帮助。提前致谢!
【问题讨论】:
-
不相关:您的代码相当于 Python 中的
print "Local current time:", time.ctime()调用。
标签: python time calendar expression routed-commands