📅  最后修改于: 2022-03-11 14:45:53.015000             🧑  作者: Mango
代码示例3
num = input("Enter your number: ")
result = 0
for n in str(num):
result += int(n)
print("Result: ",result)
#code by fawlid