PROBLEM SET
count方法
按知识点筛选题目,系统巩固该考点。
题目列表
共 4 题
A58793
下列程序的运行结果是?( )tem=(4,7,4,6,9)tem=tem+(4,)print(tem.count(4))
2022年
--
--
A68252
列表名.count() 方法用于统计某个元素在列表中出现的次数。
2022年
--
--
A60024
统计黑色"black"在当前pen元组中出现的次数pen=('blue','black','red','black','blue','black')print(pen.count('black')) 输出的结果是?( )
2024年-选择题
--
--
A60545
在Python中运行以下代码,选择正确的输出结果? ( )scores = (85, 90, 85, 78, 90, 85)
2025年
--
--