擅长:python、mysql、java
<p>你的缩进错了。尝试类似于:</p>
<pre><code>#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the countingValleys function below.
def countingValleys(n, s):
print('hi')
# The below line should not be inside the function countingValleys
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
....
</code></pre>
<p>它应该会起作用的。您将在底部的<code>Debug output</code>框中看到输出</p>