このループを正しく記述する方法を解決できません。90% 完了していますが、これを解決できません。
string.replace(archive_header, "titlefixed", titlefixed)
これは、この for ループに含める必要があります
for arfosers in archive_header, forum_header, search_header, rss_header:
arfosers.write(rss_header + string.replace(footer_p, "<!-- recent posts -->", postgroup))
arfosers.close()
(「rssヘッダーのarfosers.write行を取り除くのを手伝ってください)」
これらは、「for」ループで実行したい行です。
archive_header = string.replace(archive_header, "titlefixed", titlefixed)
archive_file.write(archive_header + archive_body + string.replace(footer_p, "<!-- recent posts -->", postgroup))
archive_file.close()
forum_header = string.replace(forum_header, "titlefixed", titlefixed)
forum_file.write(forum_header + string.replace(footer_p, "<!-- recent posts -->", postgroup))
forum_file.close()
search_header = string.replace(search_header, "titlefixed", titlefixed)
search_file.write(search_header + string.replace(footer_p, "<!-- recent posts -->", postgroup))
search_file.close()
rss_header = string.replace(rss_header, "titlefixed", titlefixed)
rss_file.write(rss_header + string.replace(footer_p, "<!-- recent posts -->", postgroup))
rss_file.close()