import os file = open("cc.txt") for line in file: os.system(line)
file = File.open("ttt.txt") file.each_line do |line| %x(scp #{line.chomp} #{line.replace("/","")}) end
查看更多关于python打开文件逐行读取文件命令并执行的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did82946