← 返回题库
中级

交叉弹性

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve(____):
    cross_elasticity = quantity_x_change / price_y_change
    if cross_elasticity > ____:
        relation = "____"
    elif cross_elasticity < ____:
        relation = "____"
    else:
        relation = "____"
    return {"____": price_y_change, "____": quantity_x_change, "____": cross_elasticity, "____": relation}

示例

输入
solve(0.1, 0.05)
期望输出
{'Y商品价格变化率': 0.1, 'X商品需求量变化率': 0.05, '交叉弹性': 0.5, '商品关系': '替代品'}
Python 代码 🔒 登录后使用
🔒

登录后即可练习

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