Python 3.x Python:如何选择只包含特定数字的倍数?

Python 3.x Python:如何选择只包含特定数字的倍数?,python-3.x,Python 3.x,例如,从因子数字的所有倍数中,我想找出在整数的两个数字之一中有数字“d”的整数的数目。n是我要搜索的倍数的限制 def find_integers(): Factor=int(input("Enter Factor-digit:")) d=int(input("Enter must-have-digit:")) n=int(input("Enter the total number of integers:")) for i in range(0,n): Multiples=(Fact

例如,从因子数字的所有倍数中,我想找出在整数的两个数字之一中有数字“d”的整数的数目。n是我要搜索的倍数的限制

def find_integers():
Factor=int(input("Enter Factor-digit:"))
d=int(input("Enter must-have-digit:"))
n=int(input("Enter the total number of integers:"))

for i in range(0,n):
    Multiples=(Factor*i)
我如何继续取出其中有数字“d”的倍数


我希望这有帮助

请添加您已经尝试过的代码好吗?举一个你所期望的例子,我添加了很多我已经尝试过的代码。我对我的问题缺乏具体性表示歉意。
multiples=[x*2 for x in range(0,1000000)]
# get 1 million multiples of 2
print(list(filter(lambda x:"4" in str(x),multiples)))
# this only prints the values in multiples if the lambda function returns true
# it only returns true if the string "4" is in the string representation of the number