diff --git a/sy5-2.py b/sy5-2.py deleted file mode 100644 index a9cb825..0000000 --- a/sy5-2.py +++ /dev/null @@ -1,18 +0,0 @@ -def filterLst(L): - outL=[] - for x in L: - for i in range(x+1):#可改进 - if i*i==x: - outL.append(x) - #break; - return outL #first -s=input() -data=s.split(',')#third -for i in range(len(data)): - data[i]=int(data[i]) -result=filterLst(data)#for -if len(result)!=0: - print ("完全平方数有",result) -else: - print ("无符合要求的数!") -