📜  python 将数字乘以数字 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:24.998000             🧑  作者: Mango

代码示例1
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