さて、ご存知のように、x、y 座標を収集しようとしています。x、y をテキスト ファイルに保存する保存機能に取り組んでいます。これが私が得たものです
x1 = raw_input("What is x1: ")
y1 = raw_input("What is y1: ")
x2 = raw_input("what is x2: ")
y2 = raw_input("what is y2: ")
outFile = open("c:\\users\zilvarael\Desktop\coord_man.txt", "wt")
outFile.write("Coordinate file: \n", x1, y1, "\n", x2, y2)
これが私が直面しているエラーです:
outFile.write("Coordinate file: \n", x1, y1, "\n", x2, y2)
TypeError: function takes exactly 1 argument (6 given)
これを修正する方法はありますか?