← 返回题库
中级

实现每日蒸散量与灌溉量对比统计

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve():
    from pyodide.http import open_url
    from io import StringIO
    import pandas as pd
    et_csv = open_url(____).read()
    et = pd.read_csv(StringIO(____))
    print(____)
    for _, row in et.iterrows():
        diff = round(float(____) - float(____), ____)
        eff = float(____)
        status = '____' if diff > ____ else '____' if diff < -____ else '____'
        print("____"+str(____)+"____"+str(round(____))+"____"+str(round(____))+"____"+str(____)+"____"+str(____)+"____"+status)

示例

输入
solve()
期望输出
Daily ET vs Irrigation efficiency:
  2025-06-01 ETc=4.25mm actual=5.04mm diff=0.79mm eff=118.6% status=over_irrigated
  2025-06-02 ETc=7.05mm actual=7.53mm diff=0.48mm eff=106.8% status=optimal
  2025-06-03 ETc=4.66mm actual=3.77mm diff=-0.89mm eff=80.9% status=under_irrigated
  2025-06-04 ETc=3.73mm actual=3.08mm diff=-0.65mm eff=82.6% status=under_irrigated
  2025-06-05 ETc=4.66mm actual=4.73mm diff=0.07mm eff=101.5% status=optimal
  2025-06-06 ETc=5.97mm actual=5.75mm diff=-0.22mm eff=96.3% status=optimal
  2025-06-07 ETc=3.98mm actual=3.27mm diff=-0.71mm eff=82.2% status=under_irrigated
Python 代码 🔒 登录后使用
🔒

登录后即可练习

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