蓝桥杯Python组如何实现字符计数算法?

2026-05-26 18:380阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计110个文字,预计阅读时间需要1分钟。

蓝桥杯Python组如何实现字符计数算法?

python蓝桥杯Python组——字符计数st=input()num=st.count('a') + st.count('i') + st.count('o') + st.count('u') + st.count('e')print(num)print(len(st) - num)


蓝桥杯python组——字符计数

st = input()
num = st.count('a')+st.count('i')+st.count('o')+st.count('u')+st.count('e')
print(num)
print(len(st)-num)

谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!

蓝桥杯Python组如何实现字符计数算法?



本文共计110个文字,预计阅读时间需要1分钟。

蓝桥杯Python组如何实现字符计数算法?

python蓝桥杯Python组——字符计数st=input()num=st.count('a') + st.count('i') + st.count('o') + st.count('u') + st.count('e')print(num)print(len(st) - num)


蓝桥杯python组——字符计数

st = input()
num = st.count('a')+st.count('i')+st.count('o')+st.count('u')+st.count('e')
print(num)
print(len(st)-num)

谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!

蓝桥杯Python组如何实现字符计数算法?