to chalk sth up to experience从…中吸取教训
If you do not enjoy what ensues, chalk it up to experience and do not do it again.如果你不喜欢紧接着发生的事, 就从中吸取教训, 以后不要再干了。
The affair is something I have chalked up to experience and hope to have learned a lesson from.这次婚外情给我上了一课, 我希望自己从中吸取了教训。