#标准输出 sys.stdout.write() sys.stderr.write() #标准输入 while True : try: line = raw_input().rstrip(); except EOFError: break; pass #读取文件 for line in open(fname, "r"): pass; 等价于 fp = open(fname, "r"): while True: line = fp.readline(); if not…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace one { pub…
use warnings; use strict; open EXE, "cmd.exe" or die "Can not open cmd.exe:$!\n"; open EXEBACK, '>', 'c.exe' or die "Can not open c.exe:$!\n"; binmode(EXE); binmode(EXEBACK); while(<EXE>){ print EXEBACK $_; } close E…