def main():
with open("config.py", "r", encoding="utf-8") as f:
lines = f.readlines()
with open("config.py", "w", encoding="utf-8") as f_w:
for line in lines:
if "ID_NUM" in line:
line = line.replace(line, "ID_NUM = 22")
f_w.write(line)
if __name__ == '__main__':
main()