diff --git a/Elemen.md b/404ll.md similarity index 100% rename from Elemen.md rename to 404ll.md diff --git a/Xue-L.md b/Chen-XueLing.md similarity index 100% rename from Xue-L.md rename to Chen-XueLing.md diff --git a/Coooder.md b/Coooder-Crypto.md similarity index 100% rename from Coooder.md rename to Coooder-Crypto.md diff --git a/DeFi.csv b/DeFi.csv new file mode 100644 index 0000000..2b33a24 --- /dev/null +++ b/DeFi.csv @@ -0,0 +1,52 @@ +Name,GitHubID +Elemen,404ll +Muxin,muxin-web3 +Zemmer,Huowuge +alex_lee,alex lee +mark,markerup +wayhome,wayhome +Lu,LRlulu +gills,gillsgills +Ray,rayjun +Nova_Notes,novac42code +Xue-L,Chen-XueLing +Affe,imaffe +yuxing,yuxing11 +leokkk,leokkk88 +Ric-Li-C,linghuccc +WENDY123,WENDY1233211991 +lyi,jjeejj +Defi 残酷共学-Mark,markerup +唐三水,Tunnelai +haomiao,mmssddss +Derick,DerickIT +xiaodongQ,xiaodongQ +Young-Jeff,Young-Jeff +qiaopengjun,qiaopengjun5162 +Punkcan,punkcanyang +YuKirasawa,YuKirasawa +hython,joyc +Anchor,TheHeBoy +Sifotd,Sifotd +Stella,LunaWang5209 +Helios,HeliosLz +dethan3,dethan3 +John,Joan1caster +btou,btou666 +Ellen,Ellenp2p +char,charlottyge +Kristin,L1rul1n +Coooder,Coooder-Crypto +Neal,snaildarter +wureny,wureny +evilgenius,Glances +Q,mon1y +Naomi,boombb12138 +breeze,weifengHuang +Harris,Harriswww +hansen,nocb +wzl,wzl521 +tiao,notthere-2023 +wodeche,wodeche +Oscar,luffythink +zedz,zedz \ No newline at end of file diff --git a/Derick.md b/DerickIT.md similarity index 100% rename from Derick.md rename to DerickIT.md diff --git a/Ellen.md b/Ellenp2p.md similarity index 100% rename from Ellen.md rename to Ellenp2p.md diff --git a/evilgenius.md b/Glances.md similarity index 100% rename from evilgenius.md rename to Glances.md diff --git a/Harris.md b/Harriswww.md similarity index 100% rename from Harris.md rename to Harriswww.md diff --git a/Helios.md b/HeliosLz.md similarity index 100% rename from Helios.md rename to HeliosLz.md diff --git a/Zemmer.md b/Huowuge.md similarity index 100% rename from Zemmer.md rename to Huowuge.md diff --git a/John.md b/Joan1caster.md similarity index 100% rename from John.md rename to Joan1caster.md diff --git a/Kristin.md b/L1rul1n.md similarity index 100% rename from Kristin.md rename to L1rul1n.md diff --git a/Lu.md b/LRlulu.md similarity index 100% rename from Lu.md rename to LRlulu.md diff --git a/Stella.md b/LunaWang5209.md similarity index 100% rename from Stella.md rename to LunaWang5209.md diff --git a/ReTool.py b/ReTool.py new file mode 100644 index 0000000..59a68ae --- /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 = 'DeFi.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/Anchor.md b/TheHeBoy.md similarity index 100% rename from Anchor.md rename to TheHeBoy.md diff --git "a/\345\224\220\344\270\211\346\260\264.md" b/Tunnelai.md similarity index 100% rename from "\345\224\220\344\270\211\346\260\264.md" rename to Tunnelai.md diff --git a/WENDY123.md b/WENDY1233211991.md similarity index 100% rename from WENDY123.md rename to WENDY1233211991.md diff --git a/alex_lee.md b/alex lee.md similarity index 100% rename from alex_lee.md rename to alex lee.md diff --git a/Naomi.md b/boombb12138.md similarity index 100% rename from Naomi.md rename to boombb12138.md diff --git a/btou.md b/btou666.md similarity index 100% rename from btou.md rename to btou666.md diff --git a/char.md b/charlottyge.md similarity index 100% rename from char.md rename to charlottyge.md diff --git a/gills.md b/gillsgills.md similarity index 100% rename from gills.md rename to gillsgills.md diff --git a/Affe.md b/imaffe.md similarity index 100% rename from Affe.md rename to imaffe.md diff --git a/hython.md b/joyc.md similarity index 100% rename from hython.md rename to joyc.md diff --git a/leokkk.md b/leokkk88.md similarity index 100% rename from leokkk.md rename to leokkk88.md diff --git a/Ric-Li-C.md b/linghuccc.md similarity index 100% rename from Ric-Li-C.md rename to linghuccc.md diff --git a/Oscar.md b/luffythink.md similarity index 100% rename from Oscar.md rename to luffythink.md diff --git a/mark.md b/markerup.md similarity index 100% rename from mark.md rename to markerup.md diff --git a/haomiao.md b/mmssddss.md similarity index 100% rename from haomiao.md rename to mmssddss.md diff --git a/Q.md b/mon1y.md similarity index 100% rename from Q.md rename to mon1y.md diff --git a/Muxin.md b/muxin-web3.md similarity index 100% rename from Muxin.md rename to muxin-web3.md diff --git a/hansen.md b/nocb.md similarity index 100% rename from hansen.md rename to nocb.md diff --git a/tiao.md b/notthere-2023.md similarity index 100% rename from tiao.md rename to notthere-2023.md diff --git a/Nova_Notes.md b/novac42code.md similarity index 100% rename from Nova_Notes.md rename to novac42code.md diff --git a/Punkcan.md b/punkcanyang.md similarity index 100% rename from Punkcan.md rename to punkcanyang.md diff --git a/qiaopengjun.md b/qiaopengjun5162.md similarity index 100% rename from qiaopengjun.md rename to qiaopengjun5162.md diff --git a/Ray.md b/rayjun.md similarity index 100% rename from Ray.md rename to rayjun.md diff --git a/Neal.md b/snaildarter.md similarity index 100% rename from Neal.md rename to snaildarter.md diff --git a/breeze.md b/weifengHuang.md similarity index 100% rename from breeze.md rename to weifengHuang.md diff --git a/wzl.md b/wzl521.md similarity index 100% rename from wzl.md rename to wzl521.md diff --git a/yuxing.md b/yuxing11.md similarity index 100% rename from yuxing.md rename to yuxing11.md