时间:2021-07-01 10:21:17 帮助过:14人阅读
# execute the external "mount" command # and parse the output. import commands mount = commands.getoutput('mount -v') lines = mount.split('\n') points = map(lambda line: line.split()[2], lines) print points
希望本文所述对大家的Python程序设计有所帮助。