def func(listTemp, n):<->
temp = func(onset_times,image_cut_num)
time_cut_list = [i for i in temp]
time_cut_list[-1].append(audio.duration)
应该是缩进问题吧