可以尝试以下方法解决此问题:
import subprocess
print("Starting download of Appstore Connect Sales and Trends Reports...")
cmd = """ itc-reporter -v -u your_username -p your_password -f Sales -s Daily -n 6 -b 2019-07-01 -e 2019-07-06 -o /path/to/save/the/report """
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) (output, err) = p.communicate()
print(output) # Print the output of the command print("Done!")