結果 : how to define log function in python