1
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()
謝謝這有幫助 –