我对 Python 非常陌生,并试图弄清楚如何减去用户输入的数组中的数字。例如,在我的程序的早期,我有:`
peakone = raw_input("Where is the next large peak?: ")
next_peak.append(peakone)
peaktwo = raw_input("Where is the next large peak?: ")
next_peak.append(peaktwo)
现在我想从 peaktwo 中减去 peakone 并将这个值保存为第三个。如果有的话,最好的方法是什么?