📅  最后修改于: 2022-03-11 14:48:24.998000             🧑  作者: Mango
def getProduct(n):
product = 1
# Converting integer to string
num = str(n)
# Traversing the string
for i in num:
product = product * int(i)
return product