高職專業科目 高中 8個月以前 不好意思又是程式觀念求解 1 test = [] 2 for i in range(4, -4,-2): test.append(i) 4202 3 5 4 for i in range (len (test)): 01234 test[i] = test[i] + test[i-1] i in range (len (test)): print(test[i]) 6 for 7 2 r++d [0] 4 [1] = [2]0 [3]_: 尚未解決 回答數: 1
商業與管理 大學 約3年以前 #python 可以詢問 group_hight = [] 這行程式的意思跟用途嗎? 沒什麼程式基礎 只知道跟串列很像 但還是研究不出個所以然Orz teammate - [] group_hight group_weight group_age [] group_gender for 1 range (teammate): hight float (input (: ")) group_hight. append (hight) weight float (input(: )) group_weight. append (weight) int (input (NE: group_age. append(age) - gender input (81.1) group_gender. append(gender) #print (group_height). #print (group_weight) #print (group_age) #print (group_gender) SU 3110_one Sw_two for i in range (len (group hight)): 21 group_hightli) BU_one + croup_weight[i] zum_two croup_ageli] + average_hight average_weight average_age (aam / len(group_hight)) (sum one / len(group_hight) (sum_two/ len(group hight)) print (average hight) print (average_weight) print (average_age) 尚未解決 回答數: 1