Skip to content

Instantly share code, notes, and snippets.

@LillyWu
Created May 9, 2020 14:56
Show Gist options
  • Save LillyWu/986478d2a6963bdb543199b5b42efe4a to your computer and use it in GitHub Desktop.
Save LillyWu/986478d2a6963bdb543199b5b42efe4a to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
import glob
import os
for f in glob.glob('1/*.csv'):
# print(f)
new_filename = f.replace("node_cluster","svc")
print(f, new_filename)
# new_filename = "kml_" + new_filename
os.rename(f,new_filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment