def inventory(sku, records): return records.get(sku)
只给选中函数补 Python 3.10+ 类型标注;sku:str,records:dict[str,int],返回 int|None。保持未知 SKU 返回 None,不改函数体或测试。
app.py
原创练习文件的浏览器截图;不是 AI 产品界面。