# 「?」のフレーズを1000文字に収まるように繰り返す
phrase = "?"
repeated_text_5ch = (phrase * (1000 // len(phrase)))[:1000]

# ファイル名の設定
file_path_5ch = "repeated_text_5ch.txt"

# テキストファイルを作成
with open(file_path_5ch, "w", encoding="utf-8") as file:
file.write(repeated_text_5ch)

print(f"テキストファイル '{file_path_5ch}' が作成されました。")