미들
2026년 8월 19일버그를 찾아라: Data Analytics
코드 한 조각. 버그를 찾거나, 버그가 없음을 증명하세요.
python
1import asyncio
2import aiohttp
3
4async def fetch_user_data(user_id: int) -> dict:
5 async with aiohttp.ClientSession() as session:
6 url = f"https://api.example.com/users/{user_id}"
7 async with session.get(url) as resp:
8 return await resp.json()
9
10async def collect_profiles(user_ids: list[int]) -> list[dict]:
11 profiles = []
12 for uid in user_ids:
13 data = fetch_user_data(uid)
14 profiles.append(data)
15 return profiles문제가 되는 줄을 클릭하세요.
당신의 판단
하루 한 번. 제출하면 바로 정답이 표시됩니다.
연속 기록 유지하기
계정을 만들면 연속 기록을 유지하고 진행 상황을 추적할 수 있습니다.