📅  最后修改于: 2022-03-11 14:45:34.150000             🧑  作者: Mango
list.count(element)
list1 = ['red', 'green', 'blue', 'orange', 'green', 'gray', 'green']
color_count = list1.count('green')
print('The count of color: green is ', color_count)