python代码:
java代码
import os
file = open(“cc.txt”)
for line in file:
os.system(line)
ruby代码:
java代码
file = file.open(“ttt.txt”)
file.each_line do |line|
%x(scp #{line.chomp} #{line.replace(“/”,””)})
end
A programmer’s note boke for work and life
python代码:
java代码
import os
file = open(“cc.txt”)
for line in file:
os.system(line)
ruby代码:
java代码
file = file.open(“ttt.txt”)
file.each_line do |line|
%x(scp #{line.chomp} #{line.replace(“/”,””)})
end