2 Matching Annotations
  1. Jan 2026
    1. def middle(a, b, c): """Return the number among a, b, and c that is not the smallest or largest. Assume a, b, and c are all different numbers. >>> middle(3, 5, 4) 4 >>> middle(30, 5, 4) 5 >>> middle(3, 5, 40) 5 >>> middle(3, 5, 40) 5 >>> middle(30, 5, 40) 30 """ return ____

      这是我自己编出来的算法 return =a+b+c-min()-max()

    1. 交互式调试 很多程序员喜欢用交互式的方式使用 Python 来检查他们的代码: python3 -i file.py 执行完以下内容后,启动交互式 Python 会话file.py。 如果您正在使用ok自动评分器,该-i选项会在失败的测试用例环境中启动一个交互式会话: python3 ok -q ### Q1: name -i 然后,您可以评估与测试相关的表达式,以查看哪里出了问题。

      cs的交互式调试