摘要:def perimeter(): n = 5nL = [1,1,]if n == 0: return 0if n == 1: return 1 * 4if n == 2: return 2 * 4rl = [nL.append(nL[i]+nL[i-1]) for i in range(1, n)]
阅读全文
摘要:正常的def pig_it(): word = 'Pig latin is cool ' wordList = word.split() re = '' for item in wordList: if item.isalpha(): head = item[1:] ass = item[0]+'a
阅读全文
摘要:def cakes(recipe, available): # TODO: insert code count = [] for item in recipe: if item not in available: return 0 else: count.append(int(available[i
阅读全文