Re: [問題]新手練習遇到問題

看板Python作者 (瑟夫李)時間11年前 (2014/03/14 17:33), 編輯推噓-1(014)
留言5則, 4人參與, 最新討論串2/2 (看更多)
※ 引述《lovehoumin (瑟夫李)》之銘言: : 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練習時,遇到了瓶頸...! : 可否版上的大大幫我解答~~謝謝 就是需要編輯的地方完全不知道要加入什麼? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.250.65.17

03/14 18:00, , 1F
我覺得你在學 Python 之前應該先學好中文
03/14 18:00, 1F

03/14 20:04, , 2F
同意樓上
03/14 20:04, 2F

03/14 20:30, , 3F
我想他是指"add something here"的地方
03/14 20:30, 3F

03/14 20:44, , 4F
http://ppt.cc/Ug-x 果然跟我想的一樣 伸手牌的
03/14 20:44, 4F

03/18 10:04, , 5F
...觀察一下list內的內容和答案的關係好嗎?
03/18 10:04, 5F
文章代碼(AID): #1J8ipbJY (Python)
討論串 (同標題文章)
文章代碼(AID): #1J8ipbJY (Python)