New submission from quanyechavshuo:
Hello,I was using configparser module in python3.6,but find it works not good
when I try to write '%' to my config file,below is my func:
def update_config_file_key_value(file, section, key_name, key_value):
# 通过configparser模块的调用更新配置文件
# se
New submission from quanyechavshuo:
os.system is ok to recgnize "~",but os.path.exists can not recgnize "~".
eg:
#1.py:
import os
os.system("ls -al ~/.zshrc")
python3 1.py
output:
-rw-r--r-- 1 root wheel 5391 3 14 18:12 /var/root/.zshrc
#2.py:
import