主页
Python
Python List count() 方法
demo_ref_list_count2
运行 ❯
×
更改方向
保存代码
更改主题
fruits = [1, 4, 2, 9, 7, 8, 9, 3, 1] x = fruits.count(9) print(x)
2