python 函数默认值的小坑啊
摘要:
import datetimeimport timedef test(day=datetime.datetime.now()): print daywhile True: test() time.sleep(1)run result:2015-06-05 16:52:47.106... 阅读全文
posted @ 2015-06-05 16:55 雨渐渐 阅读(147) 评论(0) 推荐(0) 编辑
posted @ 2015-06-05 16:55 雨渐渐 阅读(147) 评论(0) 推荐(0) 编辑