📅  最后修改于: 2022-03-11 14:45:16.800000             🧑  作者: Mango
#!/usr/bin/python
import os
# Scan current path='.'
it = os.scandir()
for entry in it:
if not entry.name.startswith('.') and entry.is_file():
print(entry.name)
os.rename(entry.name, entry.name.replace('_', ''))