python如何改變count的值?
統計列表中字符的出現頻率 inp_lst = ['Apple','Banana','Apple','Grapes','Jackfruit','Apple'] lst_cnt = inp_lst.count('Apple'
) print(lst_cnt)
python如何改變count的值?
統計列表中字符的出現頻率 inp_lst = ['Apple','Banana','Apple','Grapes','Jackfruit','Apple'] lst_cnt = inp_lst.count('Apple'
) print(lst_cnt)