看板 [ Python ]
討論串[問題] list排序的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者jlhg (jlhg)時間12年前 (2013/07/28 17:59), 編輯資訊
0
0
0
內容預覽:
最簡單的作法就是用list index. data_index = 0. data_step = 5. for i, d in enumerate(day):. print(' '.join([d,. ' '.join(data[data_index:data_index + data_step])

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者aety0129 (Chen)時間12年前 (2013/07/28 16:36), 編輯資訊
0
0
0
內容預覽:
想請問一下, 我現在有幾個列表大概長這樣. data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]. day = [one, two, three, four]. time = [a, b, c, d]. 我要怎麼做可以這樣呈現呢?. one 1 2 3 4 5 a
首頁
上一頁
1
下一頁
尾頁