0002最後尾の名無しさん@3日目
2025/07/14(月) 17:50:32.33ID:7oPTlk3ophrase = "?"
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}' が作成されました。")