摘要:在列表中查看相等数字的长度 def calnumber(a,k):#a为列表,k为查找数字 count=0 for i in a: if i == k: count = count + 1 else: continue return count a=[1,2,3,4,1,3] length=caln
阅读全文
posted @ 2021-08-24 17:03
posted @ 2021-08-24 17:03
posted @ 2021-08-18 11:12