摘要:
1.列表l = [1, 2, 3, 4, 2, 2, ]res = l.count(2)print(res) print(l.count(2)) # 3 2在列表中出现了三次print(l.count(3)) # 1 2在列表中出现了一次 l.clear 清空 print(l.clear()) # 阅读全文
posted @ 2019-07-04 22:34
night丶rain
阅读(132)
评论(0)
推荐(0)
2019年7月4日