Python3 '%Y-%m-%dT%H:%M:%S.000Z' 时间格式转换

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