結果 : how to implement log in python