十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
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