mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-14 02:25:12 +08:00
9 lines
199 B
Python
9 lines
199 B
Python
|
#!/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()
|