diff --git a/realgu.md b/ChengruiGu.md similarity index 100% rename from realgu.md rename to ChengruiGu.md diff --git a/chloe.md b/Chloezhu010.md similarity index 100% rename from chloe.md rename to Chloezhu010.md diff --git a/Daniel.md b/Insomnia501.md similarity index 100% rename from Daniel.md rename to Insomnia501.md diff --git a/Lelouch.md b/JL-Lelouch.md similarity index 100% rename from Lelouch.md rename to JL-Lelouch.md diff --git a/Jessie.md b/JessieJiang2021.md similarity index 100% rename from Jessie.md rename to JessieJiang2021.md diff --git a/Linda.md b/Linda-zx.md similarity index 100% rename from Linda.md rename to Linda-zx.md diff --git a/Stella.md b/LunaWang5209.md similarity index 100% rename from Stella.md rename to LunaWang5209.md diff --git a/Marcus.md b/MRzzz-cyber.md similarity index 100% rename from Marcus.md rename to MRzzz-cyber.md diff --git a/Narrative-Reading.csv b/Narrative-Reading.csv new file mode 100644 index 0000000..c7d231c --- /dev/null +++ b/Narrative-Reading.csv @@ -0,0 +1,35 @@ +Name,GitHubID +Ache,wodeche +SwiftEvo,Swiftevo +Connie,rich-loam +Oscar,luffythink +Linda,Linda-zx +Kevin,ztm0929 +BigFei,hBigFei +bububut,bububut +Lorin,lulleeeeee +realgu,ChengruiGu +Lillian,lilian79511 +Paris,paaarissss +Tristan,Tristan3198 +Stella,LunaWang5209 +chloe,Chloezhu010 +FANJIA,Vansir01 +KarlLEEN,KarlLeen +haoran,NeoLeeAI +Rae,Raeeeeelei +Lelouch,JL-Lelouch +flytoufu,flytoufu2024 +Punkcan,punkcanyang +Marcus,MRzzz-cyber +Ray,rayjun +Jessie,JessieJiang2021 +yulai,yulai-123 +Mercy,Warmicy +Daniel,Insomnia501 +wenQ,wenQian-see +Reign,taoranzhishang +Ailce889,Ailce889 +Nour,Nourbit +owen,zhangtaotaoBTC +char,charlottyge \ No newline at end of file diff --git a/haoran.md b/NeoLeeAI.md similarity index 100% rename from haoran.md rename to NeoLeeAI.md diff --git a/Nour.md b/Nourbit.md similarity index 100% rename from Nour.md rename to Nourbit.md diff --git a/Rae.md b/Raeeeeelei.md similarity index 100% rename from Rae.md rename to Raeeeeelei.md diff --git a/ReTool.py b/ReTool.py new file mode 100644 index 0000000..4676539 --- /dev/null +++ b/ReTool.py @@ -0,0 +1,50 @@ +import pandas as pd +import os + +def read_csv_data(file_path): + """ + 读取CSV文件并返回包含name和GitHubid的字典列表 + """ + try: + df = pd.read_csv(file_path) + return df[['Name', 'GitHubID']].to_dict(orient='records') + except Exception as e: + print(f"Error reading CSV: {e}") + return None + +def rename_md_files(csv_data): + """ + 根据CSV数据重命名.md文件 + """ + if not csv_data: + print("No CSV data available for renaming files.") + return + + for item in csv_data: + old_filename = f"{item['Name']}.md" + new_filename = f"{item['GitHubID']}.md" + + if os.path.exists(old_filename): + try: + os.rename(old_filename, new_filename) + print(f"Renamed {old_filename} to {new_filename}") + except Exception as e: + print(f"Error renaming {old_filename}: {e}") + else: + print(f"File not found: {old_filename}") + +def main(): + # CSV文件路径 + csv_file_path = 'Narrative-Reading.csv' # 请确保这是正确的CSV文件路径 + + # 读取CSV文件 + csv_data = read_csv_data(csv_file_path) + + # 重命名文件 + if csv_data: + rename_md_files(csv_data) + else: + print("Failed to read CSV data. File renaming process aborted.") + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/Tristan.md b/Tristan3198.md similarity index 100% rename from Tristan.md rename to Tristan3198.md diff --git a/FANJIA.md b/Vansir01.md similarity index 100% rename from FANJIA.md rename to Vansir01.md diff --git a/Mercy.md b/Warmicy.md similarity index 100% rename from Mercy.md rename to Warmicy.md diff --git a/char.md b/charlottyge.md similarity index 100% rename from char.md rename to charlottyge.md diff --git a/flytoufu.md b/flytoufu2024.md similarity index 100% rename from flytoufu.md rename to flytoufu2024.md diff --git a/BigFei.md b/hBigFei.md similarity index 100% rename from BigFei.md rename to hBigFei.md diff --git a/Lillian.md b/lilian79511.md similarity index 100% rename from Lillian.md rename to lilian79511.md diff --git a/Oscar.md b/luffythink.md similarity index 100% rename from Oscar.md rename to luffythink.md diff --git a/Lorin.md b/lulleeeeee.md similarity index 100% rename from Lorin.md rename to lulleeeeee.md diff --git a/Paris.md b/paaarissss.md similarity index 100% rename from Paris.md rename to paaarissss.md diff --git a/Punkcan.md b/punkcanyang.md similarity index 100% rename from Punkcan.md rename to punkcanyang.md diff --git a/Ray.md b/rayjun.md similarity index 100% rename from Ray.md rename to rayjun.md diff --git a/Connie.md b/rich-loam.md similarity index 100% rename from Connie.md rename to rich-loam.md diff --git a/Reign.md b/taoranzhishang.md similarity index 100% rename from Reign.md rename to taoranzhishang.md diff --git a/wenQ.md b/wenQian-see.md similarity index 100% rename from wenQ.md rename to wenQian-see.md diff --git a/Ache.md b/wodeche.md similarity index 100% rename from Ache.md rename to wodeche.md diff --git a/yulai.md b/yulai-123.md similarity index 100% rename from yulai.md rename to yulai-123.md diff --git a/owen.md b/zhangtaotaoBTC.md similarity index 100% rename from owen.md rename to zhangtaotaoBTC.md diff --git a/Kevin.md b/ztm0929.md similarity index 100% rename from Kevin.md rename to ztm0929.md