from datetime import datetime, timedelta
current_time = datetime.now().time()
new_time = current_time - timedelta(seconds=10)
>> TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.timedelta'
如何從datetime.time對象中減去時間?這段代碼似乎只適用於datetime.datetime對象。從datetime.time減去時間對象