山东智趣岛论坛

标题: count [打印本页]

作者: lizuyu    时间: 2024-6-29 10:54
标题: count
a=["fjaklest","AJETC","NDCQAJ","desf","affAJ","dfq"]
s=0
for i in a:
    b=i.count("AJ")
    s=s+b
print(s)






欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3