Please find error here私の目標は、Pythonでファイルに書き込むことです。以下のコードで私はそれを達成しようとしていますが、表示されているようにエラーが発生しています
ここにコードがあります。
from sys import argv
first,second=argv
file1=open(second)
print file1.read()
file2=open(second)
file2.write("this is a new line being added to this file\n\n Did you recognize??")
print "check after writing to the file"
print file2.read()
ありがとうございました –