Explorar o código

update python_changetxt.py.

xdc %!s(int64=5) %!d(string=hai) anos
pai
achega
95a536deee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      python_changetxt.py

+ 1 - 1
python_changetxt.py

@@ -44,7 +44,7 @@ def alter(file,old_str,new_str):
     f.write(file_data)
     f.close()
 code_pro = code_ori.replace("'", '')
-code = f"secret_code = '{code_pro}'"
+code = f'secret_code = "{code_pro}"'
 alter("/conf.toml", "secret_code", cod