sentence = 'the cat sat on the cat mat'
indivdual_words = ['the', 'cat', 'sat', 'on', 'mat']
positions = [1, 2, 3, 4, 1, 2, 5]
f = open('word_file.txt', 'w+')
f.write(str(words))
f.close()
f = open('pos_file.txt', 'w+')
f.write(str(positions))
f.close()
プログラムを作成するためにファイルを使用位置と言葉を使用して文字列をコピーし直すために、ファイルを使用するにはどのようにしているので
'利用者の文は='私は意味shash678 @無効なパラメータ名 – depperm
で、彼がした.... –
ああ、古き良きOCR GCSEコンピューティングが。あなたの評価された授業科目に最適です。一般的に、SOの人々は、問題を自分でまず解決するための何らかの試みを見たいと思っています。 Downvoted。 – MrB