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
1 changed files with 2 additions and 2 deletions

View File

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