Once the code finishes iterating through the tuple, the else clause is invoked, and the running total is printed.
一旦代码完成tuple中的迭代,将调用else子句,打印总和。
The else clause is never executed, so nothing is printed out until you explicitly use a separate print statement.
else 子句永远不被执行,所以直到显式使用 print 语句之前不会输出任何东西。
应用推荐