fh1=open("/Users/xubin/myapp/pythonfile/file1.txt","w")
fh2=open("/Users/xubin/myapp/pythonfile/file2.txt","w")
contents1="文件内容如下"
fh2.write(contents1)
fh1.write(contents1)
fh3=open("/Users/xubin/myapp/pythonfile/file3","r")
while True:
line=fh3.readline()
if(len(line)==0):
break
print(line)
fh1.close()
fh2.close()
fh3.close()
fh3=open("/Users/xubin/myapp/pythonfile/file3","r")
fh4=open("/Users/xubin/myapp/pythonfile/file4.txt","w")
while True:
line=fh3.readline()
fh4.write(line)
if(len(line)==0):
break
print(line)
fh3.close()
fh4.close()
print("xubin")
try:
printsfs("xubin1")
except Exception as error:
print(error)
print("hello")