Update change_directory_by_replacement.py

This commit is contained in:
guanjihuan 2022-02-16 19:35:07 +08:00
parent 50845d74a0
commit cae7ec4f51

View File

@ -1,5 +1,4 @@
import os
code_path = os.getcwd() # 查看当前代码文件的路径
data_path = code_path.replace('\\', '/') # \改为/,防止路径报错
data_path = code_path.replace('codes', 'data') # 把路径中codes改为data