This commit is contained in:
张冠群 2020-10-20 18:15:26 +08:00
parent 179034104d
commit 14ac0e4715
1 changed files with 14 additions and 0 deletions

14
step2/b.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python3
b=['there', 'name', 'China', 'from', 'go','he', 'Mars', ]
file=open('/tmp/a.txt')
for line in file.readlines():
a=line.split()
a.sort()
b.sort()
if a==b:
print("答案正确")
else:
print("评测不通过")