This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
Comp-Prog-A.Liuyao.2021Fall.XinYuan
/
AllStuWrite
Watch
61
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
删除 'sy5-2.py'
master
吴思辰
3 years ago
parent
69c61236ff
commit
d080263f3d
1 changed files
with
0 additions
and
18 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-18
sy5-2.py
+ 0
- 18
sy5-2.py
View File
@ -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
(
"
无符合要求的数!
"
)
Write
Preview
Loading…
Cancel
Save