在用时间转化时,一直报AttributeError: module 'datetime' has no attribute 'now',

我用的

import datetime
 
datetime .now()  一直报错
 
可以使用 datetime.datetime.now()