-1
x = difference.total_seconds
if difference < timedelta(minutes=60):
minutes = int(x/60) % 60
return "%i minutes ago" % minutes
为什么我有Python的 - 不支持的操作类型为/:“builtin_function_or_method”和“廉政”
不支持的操作类型为/:“builtin_function_or_method”和 “廉政”
我该如何解决?
例如,_this_是一个很好的例子,因为您不仅修复了错字,还解释了为什么它不起作用并链接到文档。 +1 – georg