引用来自“Ashkandi”的评论[{date: c[:10], time: c[11:]} for c in Col]
引用来自“vx2008”的评论
谢谢回复,这行代码执行完了以后,日期和时间都村到哪里了呢?
我是了一下,调用date,提示没有定义date,请…
>>> s
Hello
>>> x len(s)
>>> print("The length of %s is %d" % (s,x))
The length of Hello is 5
看看《Python基础编程》中对格式化输出的总结:
(1). %字符:标记转换说明符的开始
(2). 转换标志:-…