Created
January 19, 2021 14:18
-
-
Save licsber/53ea76ad272b3023d17f0f9f0bbb2a12 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
| #!/usr/bin/env python3 | |
| import os | |
| os.chdir(os.path.split(os.path.realpath(__file__))[0]) | |
| # 目录下如果存在日语 | |
| # os.system("nfd2nfc ./") | |
| for i in os.listdir('.'): | |
| if os.path.isdir(i): | |
| os.system(f'mkisofs -o "{i}.iso" -UDF -U -D -input-charset utf-8 -exclude ".DS_Store" -volid "{i}" "./{i}"') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment