max = max(times[k])
TypeError: 'int' object is not callable

因为函数名和变量名都是max 重复了