我有一个列表,如下所示:[['Test', datetime.datetime(2017, 6, 30, 0, 39, 32), 'Log cribs holding approach fills are spreading (failing). Hole in town approach at end of deck as a result. Ballast walls independent of girders...could weld them.'], ['Test', datetime.datetime(2017, 6, 29, 23, 12, 3), '3x1 WBC. Town side sill looks as if it shifted towards stream. Stringers overhang sill 2m. Stringers and sills cedar. 70cm of gravel surface. Both sills have been severely scoured, and actively moving. Recommend rebuilding WBC. Stream grade 13%']]
我想把日期时间。日期时间使用以下代码将项目发送到strftime和am:
^{pr2}$
我得到以下错误:AttributeError: 'str' object has no attribute 'strftime'
当我打印类型(I[1])时,我得到:
所以我的问题是,在append语句中,它为什么要将它作为字符串读取?有没有一种方法可以做我想做的事?在
431

被折叠的 条评论
为什么被折叠?



