Created
September 28, 2023 01:08
-
-
Save wangjiezhe/a9f93b009731d2e90b9dc38774690a20 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import opencc | |
cv = opencc.OpenCC('t2s.json') | |
for i in os.listdir(): | |
j = cv.convert(i) | |
if j != i: | |
os.rename(i, j) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment