linux下 可以先找到python的大致路径 然后执行 python -V1234567 [root@host ~]# find / |grep "bin/python"/usr/bin/python/usr/bin/python2/usr/bin/python2.6 [root@host ~]# /usr/bin/python -VPython 3.3.2 --如果是3的话 就应该是找到了在运行程序的图标上用鼠标按右键,然后看属性里有该文件保存的路径。快捷方式、目标,或者选择“打开文件所在位置”的按钮。>>> from functools import reduce>>> help(reduce)help on built-in function reduce in module _functools:reduce(...) reduce(function, sequence[, initial]) -> value apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. for example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). if initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty.