def time_formatter(lst, time='', format=['d','h','m','s']):
if lst == [] or format == []:
print time
return time
else:
time = unicode(str(lst[-1])) + format[-1] + ' ' + time
time_formatter(lst[:-1], time, format[:-1])
뭔가 또 잊어먹었나 (...)
아 이런 바보-_-
왜 recursive call 할 때 return을 빼놨었지;
눈이 멀었군 -_-




덧글