标签:
import datetime import time def test(day=datetime.datetime.now()): print day while True: test() time.sleep(1) run result: 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000 2015-06-05 16:52:47.106000
标签:
原文地址:http://www.cnblogs.com/i80386/p/4555057.html