📅  最后修改于: 2022-03-11 14:46:05.392000             🧑  作者: Mango
n = int(input("Enter any number: "))sum1 = 0for i in range(1, n):if(n % i == 0):sum1 = sum1 + iif (sum1 == n):print("The number is a Perfect number!")else:print("The number is not a Perfect number!")