快捷键功能GUI初步

This commit is contained in:
2022-10-15 18:56:14 +08:00
parent 7a56a66f6c
commit 6d7cfc87bd
36 changed files with 339 additions and 41 deletions

9
key/replace.py Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/python3
import os
import sys
file = open(sys.argv[1], "r")
things = file.read().replace(sys.argv[2], sys.argv[3])
file.close()
file = open(sys.argv[1], "w")
file.write(things)
file.close()