蓝桥杯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
谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!
微信扫一扫
count=0
for i in range(1,2020):
for j in str(i):
if j=='9':
count=count+1
break
print(count)
答案为544
谢谢大家的支持,您的一键三连是 罡罡同学前进的最大动力!
相关推荐