chalk something up to experience idiom
把…当作经验教训;接受失败并从中汲取教训
to accept failure and learn from a particular experience
"So your new job didn't work out very well?" "No, it didn't, but never mind - chalk it up to experience." “那么你的新工作并不顺利?”“是不顺利,不过没关系——就当是一次教训吧。”