Update crosswords.py

This commit is contained in:
Shunyu Yao 2023-09-11 09:39:48 -04:00 committed by GitHub
parent b95e126391
commit ab400345c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ class MiniCrosswordsTask(Task):
Input Example: Input Example:
Output Example: Output Example:
""" """
def __init__(self, file): def __init__(self, file='mini0505.json'):
""" """
file: a csv file (fixed) file: a csv file (fixed)
""" """
@ -254,4 +254,4 @@ class MiniCrosswordsTask(Task):
res = res.split('\n')[-1].strip() res = res.split('\n')[-1].strip()
if res in count: count[res] += 1 if res in count: count[res] += 1
print(count) print(count)
return count return count