python-列出1-1000中包含1的数字

'''
列出1-1000中包含1的数字
'''
1 for i in range(0,1001):
2     if str(i).find("1") == 0:
3         print(i)

 

posted on 2022-02-21 21:09  Wuxuanlin  阅读(281)  评论(0编辑  收藏  举报