📜  搜索号码是否完整或没有python代码示例

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

代码示例1
number=int(input("enter the number :"))
s=0
for i in range (1,number):
    if(number%i==0):
        s+=i
if(s==number):
    print("the number is true")    
else :
    print("the number is not true")