[问题]新手练习遇到问题

楼主: lovehoumin (瑟夫李)   2014-03-14 17:13:37
def merge3 ('''add something here '''):
res = []
'''add something here'''
return res
mid = [33, 44, 88, 99, 22, 99, 77, 66, 55, 44, 33, 22, 88, 77, 66, 55]
final = [13, 14, 18, 21, 13, 14, 18, 21, 37, 68, 16, 15, 14, 13, 13, 12]
bonus = [3, 1, 1, 2, 3, 1, 1, 2, 3, 6, 1, 5, 4, 3, 1, 2]
'''call the function and receive a list'''
'''using a for-loop to print the results separated be \t'''
以下是输出的结果↓
http://i.imgur.com/tRngRut.jpg
小弟在做function练习时,遇到了瓶颈...!
可否版上的大大帮我解答~~谢谢
作者: tiefblau (tiefblau)   2014-03-14 17:23:00
如果不是只想得到output的话 你要不要说一下问题点在哪是不会call函式 还是不会merge 还是不明白整个workflow的逻辑? (btw 缩排很重要...)
作者: tjjh89017 (伊达政宗)   2014-03-14 21:26:00
zip

Links booklink

Contact Us: admin [ a t ] ucptt.com