OpenEuler-competition/step2/b.py

15 lines
265 B
Python

#!/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(a)
print("答案正确")
else:
print("评测不通过")