从网页上爬到的时间格式为 '%Y-%m-%dT%H:%M:%SZ’字符串str
需要转换成时间戳
网上翻了半天,各种复杂,最后自己动手一行代码搞定:
datetime.strptime(str, ‘%Y-%m-%dT%H:%M:%SZ’)

 

相关文章: