0
点赞
收藏
分享

微信扫一扫

蓝桥杯python组——数字 9

刘员外__ 2022-04-22 阅读 47

蓝桥杯python组——数字 9

在这里插入图片描述

count=0
for i in range(1,2020):
  for j in str(i):
    if j=='9':
      count=count+1
      break
print(count)

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

举报

相关推荐

0 条评论