商業與管理
大學
#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)
解答
您的問題解決了嗎?
看了這個問題的人
也有瀏覽這些問題喔😉
可是我想問說,這整個程式從哪裡把東西放到[]裡了呢?