Python,全re,求指导
查看原帖
Python,全re,求指导
961425
Assissian楼主2023/3/18 16:28

L,R=map(int.input().split())

count=0

for i in range(L,R+1):

for j in str(i):
    if j=="2":
        count+=1

print(count)

2023/3/18 16:28
加载中...