fileinput模块提供处理一个或多个文本文件的功能, 可以通过使用for..in来循环读取一个或多个文本文件内容. import tempfile tempf = tempfile.mktemp(dir="D:/") print "tempfile", "=>", tempf file = open(tempf, "w+b") try:
|
转载于:https://blog.51cto.com/liuxin1982/827597
fileinput模块提供处理一个或多个文本文件的功能, 可以通过使用for..in来循环读取一个或多个文本文件内容. import tempfile tempf = tempfile.mktemp(dir="D:/") print "tempfile", "=>", tempf file = open(tempf, "w+b") try:
|
转载于:https://blog.51cto.com/liuxin1982/827597