Python_Note_5–LearningList

Tips for this week. 1.txt = open(filename, “w”) 2.txt.read() 3.txt.close() 4.def print_one(arg1): 5.raw_input(“>”) 6.from sys import argv 7.from os.path import exists 8.exists(filename) # return True or False 9.len(indata) 10.print “Arg1: %r, Arg2: %r” % (arg1, arg2) 11.print ”’This is what you see will what will print, like ###,’\n””sth ”’ 12.import shutil 13.shutil.copy(src, dst) 14.shutil.copyfile(src, dst) … Read morePython_Note_5–LearningList