|
|
@ -3,6 +3,9 @@ import aiofiles
|
|
|
|
from collections import Counter
|
|
|
|
from collections import Counter
|
|
|
|
from cppy.cp_util import *
|
|
|
|
from cppy.cp_util import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# 协程
|
|
|
|
|
|
|
|
#
|
|
|
|
async def read_file(file_path):
|
|
|
|
async def read_file(file_path):
|
|
|
|
async with aiofiles.open(file_path, 'r', encoding='utf-8') as file:
|
|
|
|
async with aiofiles.open(file_path, 'r', encoding='utf-8') as file:
|
|
|
|
content = await file.read()
|
|
|
|
content = await file.read()
|
|
|
|