以下是与本节代码相关的代码:
command1 = '/usr/local/GMT5SAR/bin/ALOS_baseline ' + str(master_file) + ' ' + str(master_file)
print command1
p1 = Popen(command1, shell=True, stdout=PIPE)
out,err = p1.communicate()
print out
我的命令运行正常。这是我的主机截图
我需要存储表示lon_tie_point .....
和lat_tie_point .....
的行。我遇到的问题是这些行没有包含在out
中,这就是我要打印的内容。我该怎么做呢
似乎包含所需信息的行正在} documentation :
stderr
而不是stdout
上打印。从^{基于此,我认为以下方法可能有效:
相关问题 更多 >
编程相关推荐