大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
dirPath = raw_input("Input your dir path:\n") write = raw_input("What do you want to write? Please input here:\n") with open(dirPath+"testDitPath.txt", "w") as f: f.write(write) with open(dirPath+"testDitPath.txt", "r") as r: text = r.readline() print "This is your writed: \n", text