下面是我代码中的一个部分, 我正在试图输出一个字符串和一个整数到文件。 它不会让我每次输出更多, 所以不得不把它们放在分隔线上。 我现在也有一个错误:
TypeError: Expected a character buffer object
referring to the line outputting the variable count. Can someone tell me how to fix this error? Also if I could somehow combine all this into one line that would be cool too. Thanks!
print outfile.write ("(" + currentuser + ")")
print outfile.write (" ")
print outfile.write (count)