0
点赞
收藏
分享

微信扫一扫

Python报错TypeError: Tuple or struct_time argument required

吴陆奇 2022-07-12 阅读 78


错误原因,类型出错误啦,转换不了!
我的解决:

>>> time.mktime(time.localtime())
1545053905.0

具体就看下面的!
我的报错:

>>> time.mktime(now)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Tuple or struct_time argument required
>>>

Python报错TypeError: Tuple or struct_time argument required_时间转换


因为上面的时间转换,现在格式不支持互相转换啦。然后就报错误啦!

Python报错TypeError: Tuple or struct_time argument required_时间转换_02


这样就OK啦!


举报

相关推荐

0 条评论