因此,我尝试将文本添加到当前日期文本文件中每一行的末尾。示例(在我的文本文件中):
January 1
January 2
January 3
february 4
february 16
februray 17
我希望输出是
January 1 2022
January 2 2023
January 3 2024
february 4 2022
february 16 2023
february 17 2024
所以我只想在我的日期列表中循环那些特定年份
因此,我尝试将文本添加到当前日期文本文件中每一行的末尾。示例(在我的文本文件中):
January 1
January 2
January 3
february 4
february 16
februray 17
我希望输出是
January 1 2022
January 2 2023
January 3 2024
february 4 2022
february 16 2023
february 17 2024
所以我只想在我的日期列表中循环那些特定年份