1, A+B Problem : http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1000 #!/usr/bin/env python # coding=utf-8 a=[] for x in raw_input().split(): a.append(int(x)) print sum(a) 下面的代码只有一行,,可惜不是我想出来的!!!!: print sum(int(x) for x in ra…
output redirectionOut: public class RedirectOut { public static void main(String[] args) throws FileNotFoundException { try { var ps = new PrintStream(new FileOutputStream("out.txt")); System.setOut(ps); System.out.println("普通字符串"); Sy…
import sys import getopt import os import multiprocessing def list_all_file(path): """ list all files of a directory :param path: :return: """ file_list = [] for (path, _, files) in os.walk(path): for filename in files: file_…