Python timedelta object total_seconds() method returns the total number of seconds. print('Seconds in an year:', timedelta(days=365).total_seconds()).
確定! 回上一頁