← 返回题库
中级

开放经济-国际收支

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve(____):
    current_account = balance_of_payments.get(____)
    capital_account = balance_of_payments.get(____)
    financial_account = balance_of_payments.get(____)
    total = current_account + capital_account + financial_account
    if total > ____:
        status = "____"
    elif total < ____:
        status = "____"
    else:
        status = "____"
    return {"____": current_account, "____": capital_account, "____": financial_account, "____": total, "____": status}

示例

输入
solve({"经常账户": 100, "资本账户": 50, "金融账户": -80})
期望输出
{'经常账户': 100, '资本账户': 50, '金融账户': -80, '国际收支': 70, '状态': '顺差'}
Python 代码 🔒 登录后使用
🔒

登录后即可练习

注册免费账号,在浏览器中直接运行 Python 代码